* [PATCH 13/15] exofs: fix decimal printf format specifiers prefixed with 0x
@ 2014-08-06 4:44 Hans Wennborg
2014-08-06 6:47 ` [osd-dev] " Boaz Harrosh
0 siblings, 1 reply; 2+ messages in thread
From: Hans Wennborg @ 2014-08-06 4:44 UTC (permalink / raw)
To: bharrosh, osd-dev, linux-kernel; +Cc: Hans Wennborg
The prefix suggests the number should be printed in hex, so use
the %x specifier to do that.
Found by using regex suggested by Joe Perches.
Signed-off-by: Hans Wennborg <hans@hanshq.net>
---
fs/exofs/dir.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/exofs/dir.c b/fs/exofs/dir.c
index 49f51ab..54ab575 100644
--- a/fs/exofs/dir.c
+++ b/fs/exofs/dir.c
@@ -143,7 +143,7 @@ Espan:
bad_entry:
EXOFS_ERR(
"ERROR [exofs_check_page]: bad entry in directory(0x%lx): %s - "
- "offset=%lu, inode=0x%llu, rec_len=%d, name_len=%d\n",
+ "offset=%lu, inode=0x%llx, rec_len=%d, name_len=%d\n",
dir->i_ino, error, (page->index<<PAGE_CACHE_SHIFT)+offs,
_LLU(le64_to_cpu(p->inode_no)),
rec_len, p->name_len);
--
2.0.0.526.g5318336
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [osd-dev] [PATCH 13/15] exofs: fix decimal printf format specifiers prefixed with 0x
2014-08-06 4:44 [PATCH 13/15] exofs: fix decimal printf format specifiers prefixed with 0x Hans Wennborg
@ 2014-08-06 6:47 ` Boaz Harrosh
0 siblings, 0 replies; 2+ messages in thread
From: Boaz Harrosh @ 2014-08-06 6:47 UTC (permalink / raw)
To: Hans Wennborg, bharrosh, osd-dev, linux-kernel
On 08/06/2014 07:44 AM, Hans Wennborg wrote:
> The prefix suggests the number should be printed in hex, so use
> the %x specifier to do that.
>
> Found by using regex suggested by Joe Perches.
>
> Signed-off-by: Hans Wennborg <hans@hanshq.net>
Thanks will push
Boaz
> ---
> fs/exofs/dir.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/exofs/dir.c b/fs/exofs/dir.c
> index 49f51ab..54ab575 100644
> --- a/fs/exofs/dir.c
> +++ b/fs/exofs/dir.c
> @@ -143,7 +143,7 @@ Espan:
> bad_entry:
> EXOFS_ERR(
> "ERROR [exofs_check_page]: bad entry in directory(0x%lx): %s - "
> - "offset=%lu, inode=0x%llu, rec_len=%d, name_len=%d\n",
> + "offset=%lu, inode=0x%llx, rec_len=%d, name_len=%d\n",
> dir->i_ino, error, (page->index<<PAGE_CACHE_SHIFT)+offs,
> _LLU(le64_to_cpu(p->inode_no)),
> rec_len, p->name_len);
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-08-06 6:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-06 4:44 [PATCH 13/15] exofs: fix decimal printf format specifiers prefixed with 0x Hans Wennborg
2014-08-06 6:47 ` [osd-dev] " Boaz Harrosh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox