diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-07-25 10:34:35 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-08-07 08:44:48 +0200 |
commit | be442d717e0ffd8e012e7eca7e9c14c8d555a3db (patch) | |
tree | ef4e00af9d734bf3729868ab8cce1d0094cc5073 /drivers/mtd/ubi/ubi-barebox.h | |
parent | 8fb48927da3a7c0421d0efffc02dad49eeba4050 (diff) | |
download | barebox-be442d717e0ffd8e012e7eca7e9c14c8d555a3db.tar.gz barebox-be442d717e0ffd8e012e7eca7e9c14c8d555a3db.tar.xz |
move print_hex_dump function to include/common.h
print_hex_dump is a standard kernel function, so move it outside
the ubi header files to make it usable for other code derived from
the kernel aswell.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mtd/ubi/ubi-barebox.h')
-rw-r--r-- | drivers/mtd/ubi/ubi-barebox.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/mtd/ubi/ubi-barebox.h b/drivers/mtd/ubi/ubi-barebox.h index 58c8a6239c..03069d0947 100644 --- a/drivers/mtd/ubi/ubi-barebox.h +++ b/drivers/mtd/ubi/ubi-barebox.h @@ -32,14 +32,6 @@ #define CONFIG_MTD_UBI_WL_THRESHOLD 4096 #define UBI_IO_DEBUG 0 -#define DUMP_PREFIX_OFFSET 0 -static inline void print_hex_dump(const char *level, const char *prefix_str, - int prefix_type, int rowsize, int groupsize, - const void *buf, size_t len, bool ascii) -{ - memory_display(buf, 0, len, 4, 0); -} - /* upd.c */ static inline unsigned long copy_from_user(void *dest, const void *src, unsigned long count) |