* [PATCH] fddi: print an address with %p format specifier rather than %x
@ 2015-06-05 18:19 Colin King
2015-06-07 7:32 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Colin King @ 2015-06-05 18:19 UTC (permalink / raw)
To: netdev; +Cc: linux-kernel
From: Colin Ian King <colin.king@canonical.com>
The debug is printing the struct smt_header * address using
the %x format specifier. Fix it to use %p instead.
Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
drivers/net/fddi/skfp/srf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/fddi/skfp/srf.c b/drivers/net/fddi/skfp/srf.c
index cc27dea..9956680 100644
--- a/drivers/net/fddi/skfp/srf.c
+++ b/drivers/net/fddi/skfp/srf.c
@@ -414,7 +414,7 @@ static void smt_send_srf(struct s_smc *smc)
smt->smt_len = SMT_MAX_INFO_LEN - pcon.pc_len ;
mb->sm_len = smt->smt_len + sizeof(struct smt_header) ;
- DB_SMT("SRF: sending SRF at %x, len %d\n",smt,mb->sm_len) ;
+ DB_SMT("SRF: sending SRF at %p, len %d\n",smt,mb->sm_len) ;
DB_SMT("SRF: state SR%d Threshold %d\n",
smc->srf.sr_state,smc->srf.SRThreshold/TICKS_PER_SECOND) ;
#ifdef DEBUG
--
2.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] fddi: print an address with %p format specifier rather than %x
2015-06-05 18:19 [PATCH] fddi: print an address with %p format specifier rather than %x Colin King
@ 2015-06-07 7:32 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2015-06-07 7:32 UTC (permalink / raw)
To: colin.king; +Cc: netdev, linux-kernel
From: Colin King <colin.king@canonical.com>
Date: Fri, 5 Jun 2015 19:19:11 +0100
> From: Colin Ian King <colin.king@canonical.com>
>
> The debug is printing the struct smt_header * address using
> the %x format specifier. Fix it to use %p instead.
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-06-07 7:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-05 18:19 [PATCH] fddi: print an address with %p format specifier rather than %x Colin King
2015-06-07 7:32 ` David Miller
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).