Skip to content

Commit

Permalink
Staging: wlan-ng: Replace wlan_isprint() with generic isprint()
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Muehlenhoff <jmm@debian.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Moritz Muehlenhoff authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent 9b9556e commit 0b98de3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/staging/wlan-ng/wlan_compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
#endif

#include <linux/hardirq.h>
#include <linux/ctype.h>

#if defined(WLAN_INCLUDE_DEBUG)
#define WLAN_HEX_DUMP( l, x, p, n) if( WLAN_DBVAR >= (l) ){ \
Expand All @@ -80,8 +81,6 @@ typedef struct net_device netdevice_t;
/*--- General Macros ------------------------------------------*/
/*=============================================================*/

#define wlan_isprint(c) (((c) > (0x19)) && ((c) < (0x7f)))

#define wlan_hexchar(x) (((x) < 0x0a) ? ('0' + (x)) : ('a' + ((x) - 0x0a)))

/* Create a string of printable chars from something that might not be */
Expand All @@ -92,7 +91,7 @@ typedef struct net_device netdevice_t;
int j = 0; \
memset(str, 0, (strlen)); \
for (i = 0; i < (buflen); i++) { \
if ( wlan_isprint((buf)[i]) ) { \
if ( isprint((buf)[i]) ) { \
(str)[j] = (buf)[i]; \
j++; \
} else { \
Expand Down

0 comments on commit 0b98de3

Please sign in to comment.