diff options
author | Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> | 2006-04-11 01:53:31 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-04-11 09:18:35 -0400 |
commit | 6dad2d3faac21d487ffd1d15268b1802feeb3e72 (patch) | |
tree | 617f14deb02c1ab8911c630df0c990a55a67721f /arch/um/drivers/cow_user.c | |
parent | f2ea394082c5d1682e6a131c5981085b8752c6e9 (diff) |
[PATCH] uml: fix 2 harmless cast warnings for 64-bit
Fix two harmless warnings in 64-bit compilation (the 2nd doesn't trigger for
now because of a missing __attribute((format)) for cow_printf, but next
patches fix that).
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/um/drivers/cow_user.c')
-rw-r--r-- | arch/um/drivers/cow_user.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/um/drivers/cow_user.c b/arch/um/drivers/cow_user.c index a9afccf68e38..0ec4052db9c5 100644 --- a/arch/um/drivers/cow_user.c +++ b/arch/um/drivers/cow_user.c | |||
@@ -210,8 +210,9 @@ int write_cow_header(char *cow_file, int fd, char *backing_file, | |||
210 | 210 | ||
211 | err = -EINVAL; | 211 | err = -EINVAL; |
212 | if(strlen(backing_file) > sizeof(header->backing_file) - 1){ | 212 | if(strlen(backing_file) > sizeof(header->backing_file) - 1){ |
213 | /* Below, %zd is for a size_t value */ | ||
213 | cow_printf("Backing file name \"%s\" is too long - names are " | 214 | cow_printf("Backing file name \"%s\" is too long - names are " |
214 | "limited to %d characters\n", backing_file, | 215 | "limited to %zd characters\n", backing_file, |
215 | sizeof(header->backing_file) - 1); | 216 | sizeof(header->backing_file) - 1); |
216 | goto out_free; | 217 | goto out_free; |
217 | } | 218 | } |