summaryrefslogtreecommitdiff
path: root/arch/s390
diff options
context:
space:
mode:
authorMichael Holzheu <holzheu@linux.vnet.ibm.com>2009-09-11 10:28:54 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2009-09-11 10:29:51 +0200
commitad2a5d8e0b518f997af126dd737127bdada90a6f (patch)
treebf788cde75d27907c1308955f67bb6e9e50e7dd2 /arch/s390
parent11af97e18ea8c310d73b59f1361e6f04444e05a8 (diff)
downloadlinux-3.10-ad2a5d8e0b518f997af126dd737127bdada90a6f.tar.gz
linux-3.10-ad2a5d8e0b518f997af126dd737127bdada90a6f.tar.bz2
linux-3.10-ad2a5d8e0b518f997af126dd737127bdada90a6f.zip
[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 <holzheu@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390')
-rw-r--r--arch/s390/hypfs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/hypfs/inode.c b/arch/s390/hypfs/inode.c
index e760b5b0141..bd9914b8948 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);