From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergei Shtylyov Subject: Re: [PATCH v4 3/3] net/xen-netback: Don't mix hexa and decimal with 0x in the printf format Date: Wed, 17 Jun 2015 01:29:16 +0300 Message-ID: <5580A33C.4040007__29229.9516303048$1434493877$gmane$org@cogentembedded.com> References: <1434481848-26387-1-git-send-email-julien.grall@citrix.com> <1434481848-26387-4-git-send-email-julien.grall@citrix.com> <5580821D.4080408@cogentembedded.com> <1434492550.2689.8.camel@perches.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Z4zM9-00054P-KD for xen-devel@lists.xenproject.org; Tue, 16 Jun 2015 22:29:21 +0000 Received: by lacny3 with SMTP id ny3so20891170lac.3 for ; Tue, 16 Jun 2015 15:29:19 -0700 (PDT) In-Reply-To: <1434492550.2689.8.camel@perches.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Joe Perches Cc: Wei Liu , Ian Campbell , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Julien Grall , xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org Hello. On 06/17/2015 01:09 AM, Joe Perches wrote: >>> Append 0x to all %x in order to avoid while reading when there is other >>> decimal value in the log. > [] >>> @@ -874,7 +874,7 @@ static inline void xenvif_grant_handle_set(struct xenvif_queue *queue, >>> if (unlikely(queue->grant_tx_handle[pending_idx] != >>> NETBACK_INVALID_HANDLE)) { >>> netdev_err(queue->vif->dev, >>> - "Trying to overwrite active handle! pending_idx: %x\n", >>> + "Trying to overwrite active handle! pending_idx: 0x%x\n", >> Using "%#x" is shorter ind does the same. > That's true, but it's also far less common. Which is a pity... People just don't know the format specifiers well enough. :-( > $ git grep -E "%#[\*\d\.]*x" | wc -l > 1419 > $ git grep "0x%" | wc -l > 29844 Which means 29 KB could theoretically be saved on allyesconfig build. :-) (Actually less since the width specifiers will likely need to be fixed where present.) WBR, Sergei