From patchwork Fri Feb 4 21:44:48 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Horman X-Patchwork-Id: 532921 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p14Lj6DT024024 for ; Fri, 4 Feb 2011 21:45:06 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752801Ab1BDVpF (ORCPT ); Fri, 4 Feb 2011 16:45:05 -0500 Received: from kirsty.vergenet.net ([202.4.237.240]:37156 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752474Ab1BDVpE (ORCPT ); Fri, 4 Feb 2011 16:45:04 -0500 Received: from ayumi.akashicho.tokyo.vergenet.net (219-109-213-121.bitcat.net [219.109.213.121]) by kirsty.vergenet.net (Postfix) with ESMTP id 992EC245A5; Sat, 5 Feb 2011 08:45:01 +1100 (EST) Received: by ayumi.akashicho.tokyo.vergenet.net (Postfix, from userid 7100) id 4948FEDE161; Sat, 5 Feb 2011 06:44:56 +0900 (JST) From: Simon Horman To: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Guennadi Liakhovetski , Ian Molton , Chris Ball , Simon Horman Subject: [PATCH] [patch v2] tmio_mmc: Improve readability of the output of pr_debug_status() Date: Sat, 5 Feb 2011 06:44:48 +0900 Message-Id: <1296855888-1535-1-git-send-email-horms@verge.net.au> X-Mailer: git-send-email 1.7.2.3 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 04 Feb 2011 21:45:06 +0000 (UTC) diff --git a/drivers/mmc/host/tmio_mmc.h b/drivers/mmc/host/tmio_mmc.h index 6f724de..811427d 100644 --- a/drivers/mmc/host/tmio_mmc.h +++ b/drivers/mmc/host/tmio_mmc.h @@ -237,12 +237,16 @@ static inline void tmio_mmc_kunmap_atomic(void *virt, #define STATUS_TO_TEXT(a) \ do { \ - if (status & TMIO_STAT_##a) \ + if (status & TMIO_STAT_##a) { \ + if (i++) \ + printk("|"); \ printk(#a); \ + } \ } while (0) void pr_debug_status(u32 status) { + int i = 0; printk(KERN_DEBUG "status: %08x = ", status); STATUS_TO_TEXT(CARD_REMOVE); STATUS_TO_TEXT(CARD_INSERT);