diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-02-27 10:57:14 -0500 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-02-27 10:57:14 -0500 |
commit | d92a8d48085df863032110d9ccb221cde98d14e1 (patch) | |
tree | faf03d9c10e104f3ab3fb8264e70b4662bae5d33 /fs/gfs2/ondisk.c | |
parent | 2fcb4a1278ec41508d76786f4c5d23bff3b378ee (diff) |
[GFS2] Audit printk and kmalloc
All printk calls now have KERN_ set where required and a couple of
kmalloc(), memset(.., 0, ...) calls changed to kzalloc().
This is in response to comments from:
Pekka Enberg <penberg@cs.helsinki.fi> and
Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/ondisk.c')
-rw-r--r-- | fs/gfs2/ondisk.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/gfs2/ondisk.c b/fs/gfs2/ondisk.c index 854b5049b8d5..964abd2760ff 100644 --- a/fs/gfs2/ondisk.c +++ b/fs/gfs2/ondisk.c | |||
@@ -17,7 +17,7 @@ | |||
17 | #include "gfs2.h" | 17 | #include "gfs2.h" |
18 | #include <linux/gfs2_ondisk.h> | 18 | #include <linux/gfs2_ondisk.h> |
19 | 19 | ||
20 | #define pv(struct, member, fmt) printk(" "#member" = "fmt"\n", struct->member); | 20 | #define pv(struct, member, fmt) printk(KERN_INFO " "#member" = "fmt"\n", struct->member); |
21 | #define pa(struct, member, count) print_array(#member, struct->member, count); | 21 | #define pa(struct, member, count) print_array(#member, struct->member, count); |
22 | 22 | ||
23 | /** | 23 | /** |
@@ -32,11 +32,11 @@ static void print_array(char *title, char *buf, int count) | |||
32 | { | 32 | { |
33 | int x; | 33 | int x; |
34 | 34 | ||
35 | printk(" %s =\n", title); | 35 | printk(KERN_INFO " %s =\n" KERN_INFO, title); |
36 | for (x = 0; x < count; x++) { | 36 | for (x = 0; x < count; x++) { |
37 | printk("%.2X ", (unsigned char)buf[x]); | 37 | printk("%.2X ", (unsigned char)buf[x]); |
38 | if (x % 16 == 15) | 38 | if (x % 16 == 15) |
39 | printk("\n"); | 39 | printk("\n" KERN_INFO); |
40 | } | 40 | } |
41 | if (x % 16) | 41 | if (x % 16) |
42 | printk("\n"); | 42 | printk("\n"); |
@@ -338,7 +338,7 @@ void gfs2_dirent_print(struct gfs2_dirent *de, char *name) | |||
338 | 338 | ||
339 | memset(buf, 0, GFS2_FNAMESIZE + 1); | 339 | memset(buf, 0, GFS2_FNAMESIZE + 1); |
340 | memcpy(buf, name, de->de_name_len); | 340 | memcpy(buf, name, de->de_name_len); |
341 | printk(" name = %s\n", buf); | 341 | printk(KERN_INFO " name = %s\n", buf); |
342 | } | 342 | } |
343 | 343 | ||
344 | void gfs2_leaf_in(struct gfs2_leaf *lf, char *buf) | 344 | void gfs2_leaf_in(struct gfs2_leaf *lf, char *buf) |
@@ -401,7 +401,7 @@ void gfs2_ea_header_print(struct gfs2_ea_header *ea, char *name) | |||
401 | 401 | ||
402 | memset(buf, 0, GFS2_EA_MAX_NAME_LEN + 1); | 402 | memset(buf, 0, GFS2_EA_MAX_NAME_LEN + 1); |
403 | memcpy(buf, name, ea->ea_name_len); | 403 | memcpy(buf, name, ea->ea_name_len); |
404 | printk(" name = %s\n", buf); | 404 | printk(KERN_INFO " name = %s\n", buf); |
405 | } | 405 | } |
406 | 406 | ||
407 | void gfs2_log_header_in(struct gfs2_log_header *lh, char *buf) | 407 | void gfs2_log_header_in(struct gfs2_log_header *lh, char *buf) |