From: Stephen Hemminger Date: Mon, 1 Nov 2010 03:43:55 +0000 (-0400) Subject: beceem: print better message on bad ioctl X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6ba8fe77ddd3a25daa8409333295b90c26a43bae;p=linux-beck.git beceem: print better message on bad ioctl Signed-off-by: Stephen Hemminger --- diff --git a/drivers/staging/bcm/Bcmchar.c b/drivers/staging/bcm/Bcmchar.c index f9979a87c42b..5dbd96aab54e 100644 --- a/drivers/staging/bcm/Bcmchar.c +++ b/drivers/staging/bcm/Bcmchar.c @@ -2355,10 +2355,8 @@ static long bcm_char_ioctl(struct file *filp, UINT cmd, ULONG arg) break; default: - BCM_DEBUG_PRINT (Adapter, DBG_TYPE_PRINTK, 0, 0, "wrong input %x",cmd); - BCM_DEBUG_PRINT (Adapter, DBG_TYPE_OTHERS, OSAL_DBG, DBG_LVL_ALL, "In default ioctl %d\n", cmd); - Status = STATUS_FAILURE; - + pr_info(DRV_NAME ": unknown ioctl cmd=%#x\n", cmd); + Status = STATUS_FAILURE; break; } return Status;