X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;ds=inline;f=fs%2Fubifs%2Fdebug.c;h=782aa9a2509fda82d65f42b811aca7ce64576365;hb=a3c31e98a118f78e06d87311b082e54854ff6537;hp=38c91d073471eab5fd99aa58172ffeb6d27b6f44;hpb=446d37c1acc76680770400fd90e6c502e49d72df;p=oweals%2Fu-boot.git diff --git a/fs/ubifs/debug.c b/fs/ubifs/debug.c index 38c91d0734..782aa9a250 100644 --- a/fs/ubifs/debug.c +++ b/fs/ubifs/debug.c @@ -1,10 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * This file is part of UBIFS. * * Copyright (C) 2006-2008 Nokia Corporation * - * SPDX-License-Identifier: GPL-2.0+ - * * Authors: Artem Bityutskiy (Битюцкий Артём) * Adrian Hunter */ @@ -16,6 +15,8 @@ * various local functions of those subsystems. */ +#include + #ifndef __UBOOT__ #include #include @@ -308,7 +309,7 @@ void ubifs_dump_node(const struct ubifs_info *c, const void *node) /* If the magic is incorrect, just hexdump the first bytes */ if (le32_to_cpu(ch->magic) != UBIFS_NODE_MAGIC) { pr_err("Not a node, first %zu bytes:", UBIFS_CH_SZ); - print_hex_dump(KERN_ERR, "", DUMP_PREFIX_OFFSET, 32, 1, + print_hex_dump("", DUMP_PREFIX_OFFSET, 32, 1, (void *)node, UBIFS_CH_SZ, 1); return; } @@ -483,7 +484,7 @@ void ubifs_dump_node(const struct ubifs_info *c, const void *node) (int)le16_to_cpu(dn->compr_type)); pr_err("\tdata size %d\n", dlen); pr_err("\tdata:\n"); - print_hex_dump(KERN_ERR, "\t", DUMP_PREFIX_OFFSET, 32, 1, + print_hex_dump("\t", DUMP_PREFIX_OFFSET, 32, 1, (void *)&dn->data, dlen, 0); break; }