David Somayajulu | afaf5a2 | 2006-09-19 10:28:00 -0700 | [diff] [blame] | 1 | /* |
| 2 | * QLogic iSCSI HBA Driver |
| 3 | * Copyright (c) 2003-2006 QLogic Corporation |
| 4 | * |
| 5 | * See LICENSE.qla4xxx for copyright and licensing details. |
| 6 | */ |
| 7 | |
| 8 | #include "ql4_def.h" |
David C Somayajulu | 0187106 | 2007-05-23 17:46:00 -0700 | [diff] [blame] | 9 | #include "ql4_glbl.h" |
| 10 | #include "ql4_dbg.h" |
| 11 | #include "ql4_inline.h" |
David Somayajulu | afaf5a2 | 2006-09-19 10:28:00 -0700 | [diff] [blame] | 12 | |
| 13 | void qla4xxx_dump_buffer(void *b, uint32_t size) |
| 14 | { |
| 15 | uint32_t cnt; |
| 16 | uint8_t *c = b; |
| 17 | |
Karen Higgins | 94bced3 | 2009-07-15 15:02:58 -0500 | [diff] [blame] | 18 | printk(" 0 1 2 3 4 5 6 7 8 9 Ah Bh Ch Dh Eh " |
David Somayajulu | afaf5a2 | 2006-09-19 10:28:00 -0700 | [diff] [blame] | 19 | "Fh\n"); |
| 20 | printk("------------------------------------------------------------" |
| 21 | "--\n"); |
Karen Higgins | 94bced3 | 2009-07-15 15:02:58 -0500 | [diff] [blame] | 22 | for (cnt = 0; cnt < size; c++) { |
| 23 | printk(KERN_INFO "%02x", *c); |
| 24 | if (!(++cnt % 16)) |
| 25 | printk(KERN_INFO "\n"); |
David Somayajulu | afaf5a2 | 2006-09-19 10:28:00 -0700 | [diff] [blame] | 26 | |
| 27 | else |
Karen Higgins | 94bced3 | 2009-07-15 15:02:58 -0500 | [diff] [blame] | 28 | printk(KERN_INFO " "); |
David Somayajulu | afaf5a2 | 2006-09-19 10:28:00 -0700 | [diff] [blame] | 29 | } |
Karen Higgins | 94bced3 | 2009-07-15 15:02:58 -0500 | [diff] [blame] | 30 | printk(KERN_INFO "\n"); |
David Somayajulu | afaf5a2 | 2006-09-19 10:28:00 -0700 | [diff] [blame] | 31 | } |
Adrian Bunk | 4797547 | 2007-04-26 00:35:16 -0700 | [diff] [blame] | 32 | |