Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: gs_fpgaboot: Use print_hex_dump_bytes instead of pr_info

Use print_hex_dump_bytes instead of pr_info

Signed-off-by: Dzmitry Sledneu <dzmitry.sledneu@gmail.com>
Reviewed-by: Insop Song <insop.song@gainspeed.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Joe Perches and committed by
Greg Kroah-Hartman
6232876b a15522c0

+2 -23
+2 -23
drivers/staging/gs_fpgaboot/gs_fpgaboot.c
··· 46 46 module_param(file, charp, S_IRUGO); 47 47 MODULE_PARM_DESC(file, "Xilinx FPGA firmware file."); 48 48 49 - #ifdef DEBUG_FPGA 50 - static void datadump(char *msg, void *m, int n) 51 - { 52 - int i; 53 - unsigned char *c; 54 - 55 - pr_info("=== %s ===\n", msg); 56 - 57 - c = m; 58 - 59 - for (i = 0; i < n; i++) { 60 - if ((i&0xf) == 0) 61 - pr_info(KERN_INFO "\n 0x%4x: ", i); 62 - 63 - pr_info("%02X ", c[i]); 64 - } 65 - 66 - pr_info("\n"); 67 - } 68 - #endif /* DEBUG_FPGA */ 69 - 70 49 static void read_bitstream(char *bitdata, char *buf, int *offset, int rdsize) 71 50 { 72 51 memcpy(buf, bitdata + *offset, rdsize); ··· 199 220 size = fimage->lendata; 200 221 201 222 #ifdef DEBUG_FPGA 202 - datadump("bitfile sample", bitdata, 0x100); 223 + print_hex_dump_bytes("bitfile sample: ", DUMP_PREFIX_OFFSET, 224 + bitdata, 0x100); 203 225 #endif /* DEBUG_FPGA */ 204 - 205 226 if (!xl_supported_prog_bus_width(bus_bytes)) { 206 227 pr_err("unsupported program bus width %d\n", 207 228 bus_bytes);