* [PATCH] staging: wilc1000: modify odd print message
@ 2015-06-11 3:44 Dean Lee
2015-06-11 3:50 ` Greg KH
0 siblings, 1 reply; 3+ messages in thread
From: Dean Lee @ 2015-06-11 3:44 UTC (permalink / raw)
To: gregkh, devel, linux-wireless
Cc: johnny.kim, chris.park, rachel.kim, dean.lee
This driver has odd message in print string.
So this patch removes the data type.
Signed-off-by: Dean Lee <dean.lee@atmel.com>
---
drivers/staging/wilc1000/host_interface.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c
index 1ecb373..9e055c4 100644
--- a/drivers/staging/wilc1000/host_interface.c
+++ b/drivers/staging/wilc1000/host_interface.c
@@ -703,7 +703,7 @@ static WILC_Sint32 Handle_SetOperationMode(void *drvHandler, tstrHostIfSetOperat
strWID.s32ValueSize = sizeof(WILC_Uint32);
/*Sending Cfg*/
- PRINT_INFO(HOSTINF_DBG, "(size_t)pstrWFIDrv= %p \n", pstrWFIDrv);
+ PRINT_INFO(HOSTINF_DBG, "pstrWFIDrv= %p \n", pstrWFIDrv);
s32Error = SendConfigPkt(SET_CFG, &strWID, 1, WILC_TRUE, (WILC_Uint32)pstrWFIDrv);
@@ -8040,4 +8040,3 @@ WILC_Sint32 host_int_get_ipaddress(WILC_WFIDrvHandle hWFIDrv, u8 *u16ipadd, u8 i
}
-
--
2.4.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] staging: wilc1000: modify odd print message
2015-06-11 3:44 [PATCH] staging: wilc1000: modify odd print message Dean Lee
@ 2015-06-11 3:50 ` Greg KH
[not found] ` <5579140C.9070905@atmel.com>
0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2015-06-11 3:50 UTC (permalink / raw)
To: Dean Lee; +Cc: devel, linux-wireless, rachel.kim, chris.park, johnny.kim
On Thu, Jun 11, 2015 at 12:44:24PM +0900, Dean Lee wrote:
> This driver has odd message in print string.
> So this patch removes the data type.
>
> Signed-off-by: Dean Lee <dean.lee@atmel.com>
> ---
> drivers/staging/wilc1000/host_interface.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c
> index 1ecb373..9e055c4 100644
> --- a/drivers/staging/wilc1000/host_interface.c
> +++ b/drivers/staging/wilc1000/host_interface.c
> @@ -703,7 +703,7 @@ static WILC_Sint32 Handle_SetOperationMode(void *drvHandler, tstrHostIfSetOperat
> strWID.s32ValueSize = sizeof(WILC_Uint32);
>
> /*Sending Cfg*/
> - PRINT_INFO(HOSTINF_DBG, "(size_t)pstrWFIDrv= %p \n", pstrWFIDrv);
> + PRINT_INFO(HOSTINF_DBG, "pstrWFIDrv= %p \n", pstrWFIDrv);
Why are you printing a kernel pointer to userspace always? That's not a
good idea, why not just delete this line, how useful is it?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-06-11 14:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-11 3:44 [PATCH] staging: wilc1000: modify odd print message Dean Lee
2015-06-11 3:50 ` Greg KH
[not found] ` <5579140C.9070905@atmel.com>
2015-06-11 14:47 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).