From: Michael Holzheu Date: Fri, 11 Sep 2009 08:28:54 +0000 (+0200) Subject: [S390] hypfs: Use "%u" instead of "%d" for unsigned ints in snprintf X-Git-Tag: v2.6.32-rc1~734^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ad2a5d8e0b518f997af126dd737127bdada90a6f;p=platform%2Fkernel%2Flinux-stable.git [S390] hypfs: Use "%u" instead of "%d" for unsigned ints in snprintf For printing unsigned integers hypfs uses "%d" in snprintf(). This is wrong. With this patch "%u" is used instead. Signed-off-by: Michael Holzheu Signed-off-by: Martin Schwidefsky --- diff --git a/arch/s390/hypfs/inode.c b/arch/s390/hypfs/inode.c index e760b5b..bd9914b 100644 --- a/arch/s390/hypfs/inode.c +++ b/arch/s390/hypfs/inode.c @@ -422,7 +422,7 @@ struct dentry *hypfs_create_u64(struct super_block *sb, struct dentry *dir, char tmp[TMP_SIZE]; struct dentry *dentry; - snprintf(tmp, TMP_SIZE, "%lld\n", (unsigned long long int)value); + snprintf(tmp, TMP_SIZE, "%llu\n", (unsigned long long int)value); buffer = kstrdup(tmp, GFP_KERNEL); if (!buffer) return ERR_PTR(-ENOMEM);