From 6f7473827b82ee3a8ec756cbd99582873bbac1ae Mon Sep 17 00:00:00 2001
From: Antoine SPITAELS <spitaelsantoine@gmail.com>
Date: Fri, 24 Jun 2016 02:33:08 +0200
Subject: [PATCH] fix the 64-bit type printf misalignment
---
src/tools/bfs_shell/command_checkfs.cpp | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/tools/bfs_shell/command_checkfs.cpp b/src/tools/bfs_shell/command_checkfs.cpp
index 35a6648..70dfa0e 100644
a
|
b
|
command_checkfs(int argc, const char* const* argv)
|
55 | 55 | while (_kern_ioctl(rootDir, BFS_IOCTL_CHECK_NEXT_NODE, &result, |
56 | 56 | sizeof(result)) == B_OK) { |
57 | 57 | if (++counter % 50 == 0) |
58 | | fssh_dprintf("%9Ld nodes processed\x1b[1A\n", counter); |
| 58 | fssh_dprintf("%" B_PRIu64 " nodes processed\x1b[1A\n", counter); |
59 | 59 | |
60 | 60 | if (result.pass == BFS_CHECK_PASS_BITMAP) { |
61 | 61 | if (result.errors) { |
62 | | fssh_dprintf("%s (inode = %lld)", result.name, result.inode); |
| 62 | fssh_dprintf("%s (inode = %" FSSH_B_PRIi64 ")", result.name, result.inode); |
63 | 63 | if ((result.errors & BFS_MISSING_BLOCKS) != 0) |
64 | 64 | fssh_dprintf(", some blocks weren't allocated"); |
65 | 65 | if ((result.errors & BFS_BLOCKS_ALREADY_SET) != 0) |
… |
… |
command_checkfs(int argc, const char* const* argv)
|
114 | 114 | "\tindices\t\t%" B_PRIu64 "\n", files, directories, attributes, |
115 | 115 | attributeDirectories, indices); |
116 | 116 | |
117 | | fssh_dprintf("\n\tdirect block runs\t\t%" B_PRIu64 " (%lld)\n", |
| 117 | fssh_dprintf("\n\tdirect block runs\t\t%" B_PRIu64 " (%" B_PRIu64 ")\n", |
118 | 118 | result.stats.direct_block_runs, |
119 | 119 | result.stats.blocks_in_direct * result.stats.block_size); |
120 | 120 | fssh_dprintf("\tindirect block runs\t\t%" B_PRIu64 " (in %" B_PRIu64 |
121 | | " array blocks, %lld)\n", result.stats.indirect_block_runs, |
| 121 | " array blocks, %" B_PRIu64 ")\n", result.stats.indirect_block_runs, |
122 | 122 | result.stats.indirect_array_blocks, |
123 | 123 | result.stats.blocks_in_indirect * result.stats.block_size); |
124 | 124 | fssh_dprintf("\tdouble indirect block runs\t%" B_PRIu64 " (in %" B_PRIu64 |
125 | | " array blocks, %lld)\n", result.stats.double_indirect_block_runs, |
| 125 | " array blocks, %" B_PRIu64 ")\n", result.stats.double_indirect_block_runs, |
126 | 126 | result.stats.double_indirect_array_blocks, |
127 | 127 | result.stats.blocks_in_double_indirect * result.stats.block_size); |
128 | 128 | |