format
# This method gets an element and returns a valid DocBook reference for it.
sub convert_key_name($_)
{
#Pattern $2 is optional and might be uninitialized
no warnings 'uninitialized';
my $str = $_[0];
$str =~ s/(const|static)? ?(struct)? ?([a-zA-Z0-9_]+) ?(\*|&)?/$2 $3/g ;
# trim
$str =~ s/^\s+|\s+$//g;
# spaces and _ to -
$str =~ s/[^A-Za-z0-9]/-/g;
return "API-" . $str;
}
sub usage {
print "Usage: $0 -db database filename\n";
print " xml source file(s) > outputfile\n";
exit 1;
}
# starting point
process_file();
if ($errors) {
print STDERR "$errors errors\n";
}
exit($errors);
e summary='commit info' class='commit-info'>
author | David Howells <dhowells@redhat.com> | 2012-10-04 14:21:23 +0100 |
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-10-10 20:06:38 +1030 |
commit | 2f1c4fef103ef914e266588af263fb42b502b347 (patch) |
tree | 10c1b8f4b41b436e2f9f62da90385d61807f34d4 /kernel/Makefile |
parent | cf75446e69305307225e12f2eb2e856db268195e (diff) |
X.509: Convert some printk calls to pr_devel
Some debugging printk() calls should've been converted to pr_devel() calls.
Do that now.
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>