From patchwork Wed Nov 30 21:39:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rasmus Villemoes X-Patchwork-Id: 9454987 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B74B960585 for ; Wed, 30 Nov 2016 21:40:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A9F6B223A4 for ; Wed, 30 Nov 2016 21:40:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9EB0328484; Wed, 30 Nov 2016 21:40:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 35D9B2849B for ; Wed, 30 Nov 2016 21:40:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758872AbcK3Vjh (ORCPT ); Wed, 30 Nov 2016 16:39:37 -0500 Received: from mail-wj0-f173.google.com ([209.85.210.173]:35461 "EHLO mail-wj0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755160AbcK3Vjd (ORCPT ); Wed, 30 Nov 2016 16:39:33 -0500 Received: by mail-wj0-f173.google.com with SMTP id v7so187642250wjy.2 for ; Wed, 30 Nov 2016 13:39:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=from:to:cc:subject:date:message-id; bh=4tE4yPYj5GICcJ/gGplNpdgeVqlWp4tv8viWHUOYQCM=; b=cI5ymso17BJmnr6cq6Bjwe0hL4M+kXh0biOGpIB1p2dquiMN3JAd+FcYgDtdTPs0y/ Xrs4EnG3bhBcHvUtlygahhiivuiD+Iy9rFfKipfg1I1KAlIioBog5j0aiXnf3jt7U/OS uJ7s8vIwzfugxaTmeC+cfibbFrdLVJesHaamc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=4tE4yPYj5GICcJ/gGplNpdgeVqlWp4tv8viWHUOYQCM=; b=dR++fKFKUweA3rvlKlitE8ni1NN4T+bJ4JHiYM/qvFjaNGrGuvhoQzx7lNYvHbSiKO ZgvLlLDSbEWG8NqXV/seDSj/DkKYGHSD6XQIVodn35axP7Yy7B2xceLAChKMzk8w6RZj UgRaH6X/loi5g1BuOU8OSWG8gEsWHrFWlezHNUPOqLpaM73cVJOrzQKHWCCsg3gXWbru HX6b0LUKGaI4mIfzN4Gc6qwyzhNnBSMt5KjCgjyipcnQf4Sly6BYVPyLE6siflzWT1WL FgwesZdYNKzfvjD4uUD4hOwn8KYQYK1nYoh5OR/aaFSIHxYqCknIhPhuwYOBtNMYKhHx tUKg== X-Gm-Message-State: AKaTC03ovXqu3KD6ejC0/OUit+wDAVGVpk1vVJqPFr3knZ7ETQuTLq7UlqwXCxXXhyUMpw== X-Received: by 10.194.55.104 with SMTP id r8mr29705318wjp.137.1480541971720; Wed, 30 Nov 2016 13:39:31 -0800 (PST) Received: from lvps87-230-87-209.dedicated.hosteurope.de (wildmoose.dk. [87.230.87.209]) by smtp.gmail.com with ESMTPSA id di9sm74904113wjc.37.2016.11.30.13.39.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 30 Nov 2016 13:39:31 -0800 (PST) From: Rasmus Villemoes To: Malcolm Priestley , Mauro Carvalho Chehab Cc: Rasmus Villemoes , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/4] [media] lmedm04: use %phN for hex dump Date: Wed, 30 Nov 2016 22:39:09 +0100 Message-Id: <1480541953-27256-1-git-send-email-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.1.4 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Using the %ph printf extension for hex dumps like this makes the generated code quite a bit smaller. Signed-off-by: Rasmus Villemoes --- drivers/media/usb/dvb-usb-v2/lmedm04.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/media/usb/dvb-usb-v2/lmedm04.c b/drivers/media/usb/dvb-usb-v2/lmedm04.c index 0e8fb89896c4..7692701878ba 100644 --- a/drivers/media/usb/dvb-usb-v2/lmedm04.c +++ b/drivers/media/usb/dvb-usb-v2/lmedm04.c @@ -99,9 +99,7 @@ static int dvb_usb_lme2510_debug; } while (0) #define deb_info(level, args...) lme_debug(dvb_usb_lme2510_debug, level, args) #define debug_data_snipet(level, name, p) \ - deb_info(level, name" (%02x%02x%02x%02x%02x%02x%02x%02x)", \ - *p, *(p+1), *(p+2), *(p+3), *(p+4), \ - *(p+5), *(p+6), *(p+7)); + deb_info(level, name" (%8phN)", p); #define info(args...) pr_info(DVB_USB_LOG_PREFIX": "args) module_param_named(debug, dvb_usb_lme2510_debug, int, 0644);