Skip to content

Commit

Permalink
ecryptfs: fix printk format warning for size_t
Browse files Browse the repository at this point in the history
Fix printk format warning (from Linus's suggestion):

on i386:
  fs/ecryptfs/miscdev.c:433:38: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'unsigned int'

and on x86_64:
  fs/ecryptfs/miscdev.c:433:38: warning: format '%u' expects type 'unsigned int', but argument 4 has type 'long unsigned int'

Signed-off-by: Randy Dunlap <[email protected]>
Cc:	Geert Uytterhoeven <[email protected]>
Cc:	Tyler Hicks <[email protected]>
Cc:	Dustin Kirkland <[email protected]>
Cc:	[email protected]
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
rddunlap authored and torvalds committed Feb 29, 2012
1 parent 891003a commit 164974a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ecryptfs/miscdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ ecryptfs_miscdev_write(struct file *file, const char __user *buf,
goto memdup;
} else if (count < MIN_MSG_PKT_SIZE || count > MAX_MSG_PKT_SIZE) {
printk(KERN_WARNING "%s: Acceptable packet size range is "
"[%d-%lu], but amount of data written is [%zu].",
"[%d-%zu], but amount of data written is [%zu].",
__func__, MIN_MSG_PKT_SIZE, MAX_MSG_PKT_SIZE, count);
return -EINVAL;
}
Expand Down

0 comments on commit 164974a

Please sign in to comment.