block/vvfat: Fix bad printf format specifiers
commitc9eb2f3e386840844bcc91e66d0a3475bc650780
authorAlexChen <alex.chen@huawei.com>
Tue, 3 Nov 2020 09:42:56 +0000 (3 17:42 +0800)
committerKevin Wolf <kwolf@redhat.com>
Tue, 3 Nov 2020 15:24:56 +0000 (3 16:24 +0100)
tree2a6c418713e21b80f81a2d188271f4592dfd43c7
parent757ae0ec5cc6849b88280e2aaca70fe5eb022a0d
block/vvfat: Fix bad printf format specifiers

We should use printf format specifier "%u" instead of "%d" for
argument of type "unsigned int".
In addition, fix two error format problems found by checkpatch.pl:
ERROR: space required after that ',' (ctx:VxV)
+        fprintf(stderr,"%s attributes=0x%02x begin=%u size=%d\n",
                       ^
ERROR: line over 90 characters
+        fprintf(stderr, "%d, %s (%u, %d)\n", i, commit->path ? commit->path : "(null)", commit->param.rename.cluster, commit->action);

Reported-by: Euler Robot <euler.robot@huawei.com>
Signed-off-by: Alex Chen <alex.chen@huawei.com>
Message-Id: <5FA12620.6030705@huawei.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/vvfat.c