projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11af97e
)
[S390] hypfs: Use "%u" instead of "%d" for unsigned ints in snprintf
author
Michael Holzheu
<holzheu@linux.vnet.ibm.com>
Fri, 11 Sep 2009 08:28:54 +0000
(10:28 +0200)
committer
Martin Schwidefsky
<schwidefsky@de.ibm.com>
Fri, 11 Sep 2009 08:29:51 +0000
(10:29 +0200)
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>
arch/s390/hypfs/inode.c
patch
|
blob
|
history
diff --git
a/arch/s390/hypfs/inode.c
b/arch/s390/hypfs/inode.c
index
e760b5b
..
bd9914b
100644
(file)
--- 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, "%ll
d
\n", (unsigned long long int)value);
+ snprintf(tmp, TMP_SIZE, "%ll
u
\n", (unsigned long long int)value);
buffer = kstrdup(tmp, GFP_KERNEL);
if (!buffer)
return ERR_PTR(-ENOMEM);