On Sep 23 2007 11:20, Vegard Nossum wrote:I mean the bodies of functions calling printk. (where possible) Like this: diff --git a/fs/quota_v2.c b/fs/quota_v2.c index c519a58..49e04e7 100644 --- a/fs/quota_v2.c +++ b/fs/quota_v2.c @@ -86,12 +86,12 @@ static int v2_write_file_info(struct super_block *sb, int type) dinfo.dqi_free_entry = cpu_to_le32(info->u.v2_i.dqi_free_entry); size = sb->s_op->quota_write(sb, type, (char *)&dinfo, sizeof(struct v2_disk_dqinfo), V2_DQINFOOFF); - if (size != sizeof(struct v2_disk_dqinfo)) { - printk(KERN_WARNING "Can't write info structure on device %s.\n", - sb->s_id); - return -1; - } - return 0; + if (size == sizeof(struct v2_disk_dqinfo)) + return 0; + + printk(KERN_WARNING "Can't write info structure on device %s.\n", + sb->s_id); + return -1; } static void disk2memdqb(struct mem_dqblk *m, struct v2_disk_dqblk *d) I gained 8 columns _without_ fiddling with the names. -
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Steven Rostedt | Re: Major regression on hackbench with SLUB |
| Nick Piggin | 2.6.24-rc2 slab vs slob tbench numbers |
| Paul Jackson | Re: cpuset-remove-sched-domain-hooks-from-cpusets |
git: | |
| David Miller | Re: [GIT]: Networking |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Frans Pop | svc: failed to register lockdv1 RPC service (errno 97). |
