Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1401470 > unrolled thread

[PATCH] misc: sgi-gru: format 0x prefixed int ts_ctxnum with %x

Started byColin King <colin.king@canonical.com>
First post2016-05-16 14:30 +0200
Last post2016-05-16 14:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] misc: sgi-gru: format 0x prefixed int ts_ctxnum with %x Colin King <colin.king@canonical.com> - 2016-05-16 14:30 +0200

#1401470 — [PATCH] misc: sgi-gru: format 0x prefixed int ts_ctxnum with %x

FromColin King <colin.king@canonical.com>
Date2016-05-16 14:30 +0200
Subject[PATCH] misc: sgi-gru: format 0x prefixed int ts_ctxnum with %x
Message-ID<rzpOO-71w-17@gated-at.bofh.it>
From: Colin Ian King <colin.king@canonical.com>

A 0x prefix to a decimal formatted intger is confusing, format it
instead with %x

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 drivers/misc/sgi-gru/grumain.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/misc/sgi-gru/grumain.c b/drivers/misc/sgi-gru/grumain.c
index 1525870..4b70575 100644
--- a/drivers/misc/sgi-gru/grumain.c
+++ b/drivers/misc/sgi-gru/grumain.c
@@ -283,7 +283,7 @@ static void gru_unload_mm_tracker(struct gru_state *gru,
 	spin_lock(&gru->gs_asid_lock);
 	BUG_ON((asids->mt_ctxbitmap & ctxbitmap) != ctxbitmap);
 	asids->mt_ctxbitmap ^= ctxbitmap;
-	gru_dbg(grudev, "gid %d, gts %p, gms %p, ctxnum 0x%d, asidmap 0x%lx\n",
+	gru_dbg(grudev, "gid %d, gts %p, gms %p, ctxnum 0x%x, asidmap 0x%lx\n",
 		gru->gs_gid, gts, gms, gts->ts_ctxnum, gms->ms_asidmap[0]);
 	spin_unlock(&gru->gs_asid_lock);
 	spin_unlock(&gms->ms_asid_lock);
-- 
2.8.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web