2006-09-19 17:28:00 +00:00
|
|
|
/*
|
|
|
|
* QLogic iSCSI HBA Driver
|
|
|
|
* Copyright (c) 2003-2006 QLogic Corporation
|
|
|
|
*
|
|
|
|
* See LICENSE.qla4xxx for copyright and licensing details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "ql4_def.h"
|
2007-05-24 00:46:00 +00:00
|
|
|
#include "ql4_glbl.h"
|
|
|
|
#include "ql4_dbg.h"
|
|
|
|
#include "ql4_inline.h"
|
2006-09-19 17:28:00 +00:00
|
|
|
|
|
|
|
void qla4xxx_dump_buffer(void *b, uint32_t size)
|
|
|
|
{
|
|
|
|
uint32_t cnt;
|
|
|
|
uint8_t *c = b;
|
|
|
|
|
2009-07-15 20:02:58 +00:00
|
|
|
printk(" 0 1 2 3 4 5 6 7 8 9 Ah Bh Ch Dh Eh "
|
2006-09-19 17:28:00 +00:00
|
|
|
"Fh\n");
|
|
|
|
printk("------------------------------------------------------------"
|
|
|
|
"--\n");
|
2009-07-15 20:02:58 +00:00
|
|
|
for (cnt = 0; cnt < size; c++) {
|
|
|
|
printk(KERN_INFO "%02x", *c);
|
|
|
|
if (!(++cnt % 16))
|
|
|
|
printk(KERN_INFO "\n");
|
2006-09-19 17:28:00 +00:00
|
|
|
|
|
|
|
else
|
2009-07-15 20:02:58 +00:00
|
|
|
printk(KERN_INFO " ");
|
2006-09-19 17:28:00 +00:00
|
|
|
}
|
2009-07-15 20:02:58 +00:00
|
|
|
printk(KERN_INFO "\n");
|
2006-09-19 17:28:00 +00:00
|
|
|
}
|
2007-04-26 07:35:16 +00:00
|
|
|
|