diff options
author | Zhihao Cheng <chengzhihao1@huawei.com> | 2024-11-11 17:00:57 +0800 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2024-11-11 10:32:45 +0100 |
commit | 6e69972e9abc69c584ae4dad6a1b6ff63c2ac3d7 (patch) | |
tree | 5a318e08223c1e0c17ade2603e99c63dcb68f52b /ubifs-utils/libubifs/scan.c | |
parent | a16031a8dac5c699a15cc91500f2718f28993431 (diff) |
ubifs-utils: Adapt gc subsystem in libubifs
Adapt gc subsystem(find.c, gc.c, scan.c) in libubifs, compared with
linux kernel implementations:
1. Adapt print_hex_dump based on implementations in hexdump.c.
Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'ubifs-utils/libubifs/scan.c')
-rw-r--r-- | ubifs-utils/libubifs/scan.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ubifs-utils/libubifs/scan.c b/ubifs-utils/libubifs/scan.c index 84a9157..74509fd 100644 --- a/ubifs-utils/libubifs/scan.c +++ b/ubifs-utils/libubifs/scan.c @@ -15,7 +15,12 @@ * debugging functions. */ +#include "linux_err.h" +#include "kmem.h" #include "ubifs.h" +#include "defs.h" +#include "debug.h" +#include "key.h" /** * scan_padding_bytes - scan for padding bytes. @@ -232,7 +237,7 @@ void ubifs_scanned_corruption(const struct ubifs_info *c, int lnum, int offs, if (len > 8192) len = 8192; ubifs_err(c, "first %d bytes from LEB %d:%d", len, lnum, offs); - print_hex_dump(KERN_DEBUG, "", DUMP_PREFIX_OFFSET, 32, 4, buf, len, 1); + print_hex_dump("", DUMP_PREFIX_OFFSET, 32, 4, buf, len, 1); } /** |