All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cxl: Remove useless precision specifiers
@ 2015-02-20 13:26 ` Rasmus Villemoes
  0 siblings, 0 replies; 19+ messages in thread
From: Rasmus Villemoes @ 2015-02-20 13:26 UTC (permalink / raw)
  To: Ian Munsie, Michael Neuling; +Cc: linuxppc-dev, Rasmus Villemoes, linux-kernel

C99 says that a precision given as simply '.' with no following digits
or * should be interpreted as 0. The kernel's printf implementation,
however, treats this case as if the precision was omitted. C99 also
says that if both the precision and value are 0, no digits should be
printed. Even if the kernel followed C99 to the letter, I don't think
that would be particularly useful in these cases, so just remove the
precision specifiers.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
---
 drivers/misc/cxl/irq.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/misc/cxl/irq.c b/drivers/misc/cxl/irq.c
index c8929c526691..46635a8dbeae 100644
--- a/drivers/misc/cxl/irq.c
+++ b/drivers/misc/cxl/irq.c
@@ -147,7 +147,7 @@ static irqreturn_t cxl_irq(int irq, void *data, struct cxl_irq_info *irq_info)
 	if (dsisr & CXL_PSL_DSISR_An_PE)
 		return handle_psl_slice_error(ctx, dsisr, irq_info->errstat);
 	if (dsisr & CXL_PSL_DSISR_An_AE) {
-		pr_devel("CXL interrupt: AFU Error %.llx\n", irq_info->afu_err);
+		pr_devel("CXL interrupt: AFU Error %llx\n", irq_info->afu_err);
 
 		if (ctx->pending_afu_err) {
 			/*
@@ -158,7 +158,7 @@ static irqreturn_t cxl_irq(int irq, void *data, struct cxl_irq_info *irq_info)
 			 * probably best that we log them somewhere:
 			 */
 			dev_err_ratelimited(&ctx->afu->dev, "CXL AFU Error "
-					    "undelivered to pe %i: %.llx\n",
+					    "undelivered to pe %i: %llx\n",
 					    ctx->pe, irq_info->afu_err);
 		} else {
 			spin_lock(&ctx->lock);
-- 
2.1.3

^ permalink raw reply related	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2015-07-16  9:59 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-20 13:26 [PATCH] cxl: Remove useless precision specifiers Rasmus Villemoes
2015-02-20 13:26 ` Rasmus Villemoes
2015-02-23  3:40 ` Ian Munsie
2015-02-23  6:42   ` Joe Perches
2015-02-23  6:42     ` Joe Perches
2015-02-23 10:55   ` [PATCH v2] cxl: Add explicit " Rasmus Villemoes
2015-02-23 10:55     ` Rasmus Villemoes
2015-02-23 14:59     ` Joe Perches
2015-02-23 14:59       ` Joe Perches
2015-02-24  0:12       ` Michael Ellerman
2015-02-24  0:12         ` Michael Ellerman
2015-02-24  4:28       ` Ian Munsie
2015-02-24  4:28         ` Ian Munsie
2015-06-11 11:27         ` [PATCH v3 1/2] " Rasmus Villemoes
2015-06-11 11:27           ` [PATCH v3 2/2] cxl: use more common format specifier Rasmus Villemoes
2015-06-12  1:08             ` Ian Munsie
2015-07-16  9:59           ` [v3,1/2] cxl: Add explicit precision specifiers Michael Ellerman
2015-02-24  4:25     ` [PATCH v2] " Ian Munsie
2015-02-24  4:25       ` Ian Munsie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.