summaryrefslogtreecommitdiff
path: root/drivers/rkflash/rkflash_debug.c
blob: fcff32d098e9abbe96aabe30af9db9a2165d084a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// SPDX-License-Identifier: GPL-2.0

/* Copyright (c) 2018 Rockchip Electronics Co. Ltd. */

#include <linux/kernel.h>

#include "rkflash_debug.h"
#include "sfc_nor.h"

void rkflash_print_hex(char *s, void *buf, u32 width, u32 len)
{
	print_hex_dump(KERN_WARNING, s, DUMP_PREFIX_OFFSET,
		       16, width, buf, len * width, 0);
}