[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>
This commit is contained in:
parent
11af97e18e
commit
ad2a5d8e0b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user