fs/affs: use unsigned int for string lengths
[linux-2.6-microblaze.git] / fs / affs / dir.c
index 59f07be..a682892 100644 (file)
@@ -54,8 +54,7 @@ affs_readdir(struct file *file, struct dir_context *ctx)
        u32                      ino;
        int                      error = 0;
 
-       pr_debug("%s(ino=%lu,f_pos=%lx)\n",
-                __func__, inode->i_ino, (unsigned long)ctx->pos);
+       pr_debug("%s(ino=%lu,f_pos=%llx)\n", __func__, inode->i_ino, ctx->pos);
 
        if (ctx->pos < 2) {
                file->private_data = (void *)0;
@@ -117,9 +116,8 @@ inside:
 
                        namelen = min(AFFS_TAIL(sb, fh_bh)->name[0], (u8)30);
                        name = AFFS_TAIL(sb, fh_bh)->name + 1;
-                       pr_debug("readdir(): dir_emit(\"%.*s\", "
-                                "ino=%u), hash=%d, f_pos=%x\n",
-                                namelen, name, ino, hash_pos, (u32)ctx->pos);
+                       pr_debug("readdir(): dir_emit(\"%.*s\", ino=%u), hash=%d, f_pos=%llx\n",
+                                namelen, name, ino, hash_pos, ctx->pos);
 
                        if (!dir_emit(ctx, name, namelen, ino, DT_UNKNOWN))
                                goto done;