X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=fs%2Fubifs%2Fdebug.h;h=bad0c67f5dac4b50010995f26458bb9fe317f406;hb=a3c31e98a118f78e06d87311b082e54854ff6537;hp=6d325af8bcc296305815536f748aed790e697df4;hpb=ff94bc40af3481d47546595ba73c136de6af6929;p=oweals%2Fu-boot.git diff --git a/fs/ubifs/debug.h b/fs/ubifs/debug.h index 6d325af8bc..bad0c67f5d 100644 --- a/fs/ubifs/debug.h +++ b/fs/ubifs/debug.h @@ -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 */ @@ -12,7 +11,6 @@ #ifndef __UBIFS_DEBUG_H__ #define __UBIFS_DEBUG_H__ -#define __UBOOT__ /* Checking helper functions */ typedef int (*dbg_leaf_callback)(struct ubifs_info *c, struct ubifs_zbranch *zbr, void *priv); @@ -188,19 +186,12 @@ struct ubifs_global_debug_info { ##__VA_ARGS__) #define DBG_KEY_BUF_LEN 48 -#if defined CONFIG_MTD_DEBUG #define ubifs_dbg_msg_key(type, key, fmt, ...) do { \ char __tmp_key_buf[DBG_KEY_BUF_LEN]; \ pr_debug("UBIFS DBG " type ": " fmt "%s\n", \ ##__VA_ARGS__, \ dbg_snprintf_key(c, key, __tmp_key_buf, DBG_KEY_BUF_LEN)); \ } while (0) -#else -#define ubifs_dbg_msg_key(type, key, fmt, ...) do { \ - pr_debug("UBIFS DBG\n"); \ -} while (0) - -#endif #endif