regulator: Add WM8994 regulator support
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / drivers / scsi / qla4xxx / ql4_dbg.c
blobcbceb0ebabf7c41888ec091ab77f61e1c9b20f48
1 /*
2 * QLogic iSCSI HBA Driver
3 * Copyright (c) 2003-2006 QLogic Corporation
5 * See LICENSE.qla4xxx for copyright and licensing details.
6 */
8 #include "ql4_def.h"
9 #include "ql4_glbl.h"
10 #include "ql4_dbg.h"
11 #include "ql4_inline.h"
13 void qla4xxx_dump_buffer(void *b, uint32_t size)
15 uint32_t cnt;
16 uint8_t *c = b;
18 printk(" 0 1 2 3 4 5 6 7 8 9 Ah Bh Ch Dh Eh "
19 "Fh\n");
20 printk("------------------------------------------------------------"
21 "--\n");
22 for (cnt = 0; cnt < size; c++) {
23 printk(KERN_INFO "%02x", *c);
24 if (!(++cnt % 16))
25 printk(KERN_INFO "\n");
27 else
28 printk(KERN_INFO " ");
30 printk(KERN_INFO "\n");