blob: 009f5f6df8f4e63febea20d808f02fb327da8935 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/*
* Driver for KeyStream 11b/g wireless LAN cards.
*
* ks_debug.c
* $Id: ks_debug.c 991 2009-09-14 01:38:58Z sekine $
*
* Copyright (C) 2005-2008 KeyStream Corp.
* Copyright (C) 2009 Renesas Technology Corp.
*
* This program is free software; you can redistribute it and/or modify
* it undr the terms of the GNU General Public License version 2 as
* published by the Free Sotware Foundation.
*/
#include "ks_wlan.h"
#include "ks_debug.h"
void print_buffer(unsigned char *p, int length)
{
#ifdef KS_WLAN_DEBUG
int i;
#define HEX_OFFSET "\
+0 +1 +2 +3 +4 +5 +6 +7 +8 +9 +A +B +C +D +E +F"
printk(HEX_OFFSET);
for (i=0; i<length; i++) {
if (i % 16 == 0) printk("\n%04X-%04X:", i, i+15);
printk(" %02X", *(p+i));
}
printk("\n");
#endif
}
|