diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfsd/nfs4idmap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/nfsd/nfs4idmap.c b/fs/nfsd/nfs4idmap.c index 2cf9a9a2d89c..2ccffde81b84 100644 --- a/fs/nfsd/nfs4idmap.c +++ b/fs/nfsd/nfs4idmap.c | |||
@@ -138,7 +138,7 @@ idtoname_request(struct cache_detail *cd, struct cache_head *ch, char **bpp, | |||
138 | char idstr[11]; | 138 | char idstr[11]; |
139 | 139 | ||
140 | qword_add(bpp, blen, ent->authname); | 140 | qword_add(bpp, blen, ent->authname); |
141 | snprintf(idstr, sizeof(idstr), "%d", ent->id); | 141 | snprintf(idstr, sizeof(idstr), "%u", ent->id); |
142 | qword_add(bpp, blen, ent->type == IDMAP_TYPE_GROUP ? "group" : "user"); | 142 | qword_add(bpp, blen, ent->type == IDMAP_TYPE_GROUP ? "group" : "user"); |
143 | qword_add(bpp, blen, idstr); | 143 | qword_add(bpp, blen, idstr); |
144 | 144 | ||
@@ -165,7 +165,7 @@ idtoname_show(struct seq_file *m, struct cache_detail *cd, struct cache_head *h) | |||
165 | return 0; | 165 | return 0; |
166 | } | 166 | } |
167 | ent = container_of(h, struct ent, h); | 167 | ent = container_of(h, struct ent, h); |
168 | seq_printf(m, "%s %s %d", ent->authname, | 168 | seq_printf(m, "%s %s %u", ent->authname, |
169 | ent->type == IDMAP_TYPE_GROUP ? "group" : "user", | 169 | ent->type == IDMAP_TYPE_GROUP ? "group" : "user", |
170 | ent->id); | 170 | ent->id); |
171 | if (test_bit(CACHE_VALID, &h->flags)) | 171 | if (test_bit(CACHE_VALID, &h->flags)) |
@@ -349,7 +349,7 @@ nametoid_show(struct seq_file *m, struct cache_detail *cd, struct cache_head *h) | |||
349 | ent->type == IDMAP_TYPE_GROUP ? "group" : "user", | 349 | ent->type == IDMAP_TYPE_GROUP ? "group" : "user", |
350 | ent->name); | 350 | ent->name); |
351 | if (test_bit(CACHE_VALID, &h->flags)) | 351 | if (test_bit(CACHE_VALID, &h->flags)) |
352 | seq_printf(m, " %d", ent->id); | 352 | seq_printf(m, " %u", ent->id); |
353 | seq_printf(m, "\n"); | 353 | seq_printf(m, "\n"); |
354 | return 0; | 354 | return 0; |
355 | } | 355 | } |