From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752011AbdFHPiN (ORCPT ); Thu, 8 Jun 2017 11:38:13 -0400 Received: from smtprelay0184.hostedemail.com ([216.40.44.184]:43477 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751887AbdFHPiL (ORCPT ); Thu, 8 Jun 2017 11:38:11 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::,RULES_HIT:41:355:379:541:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2393:2551:2553:2559:2562:2693:2828:3138:3139:3140:3141:3142:3352:3622:3865:3867:3871:3872:3873:4250:4321:5007:6120:7514:7901:10004:10400:10848:11232:11658:11914:12050:12740:12895:13069:13311:13357:13439:13894:14181:14659:14721:21080:21627:30054:30075:30083:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:3,LUA_SUMMARY:none X-HE-Tag: duck30_2a04d914b771e X-Filterd-Recvd-Size: 2130 Message-ID: <1496936287.1929.18.camel@perches.com> Subject: Re: [PATCH] platform/x86: wmi: Fix printing info about WDG structure From: Joe Perches To: Darren Hart , Andy Shevchenko Cc: Pali =?ISO-8859-1?Q?Roh=E1r?= , Andy Shevchenko , Andy Lutomirski , Platform Driver , "linux-kernel@vger.kernel.org" Date: Thu, 08 Jun 2017 08:38:07 -0700 In-Reply-To: <20170608151618.GE32509@fury> References: <1495885877-7906-1-git-send-email-pali.rohar@gmail.com> <201705271517.30111@pali> <201705272248.13257@pali> <20170608151618.GE32509@fury> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.6-1ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2017-06-08 at 08:16 -0700, Darren Hart wrote: > On Sat, May 27, 2017 at 11:49:22PM +0300, Andy Shevchenko wrote: > > On Sat, May 27, 2017 at 11:48 PM, Pali Rohár wrote: > > > On Saturday 27 May 2017 15:33:14 Andy Shevchenko wrote: > > > > On Sat, May 27, 2017 at 4:17 PM, Pali Rohár > > > > wrote: > > > > Okay, got it. But on your opinion does it make sense to do > > > > > > > > pr_info("\tobject_id: %2pE\n", g->object_id); > > > > > > > > instead? > > > > > > > > For ASCII it will go as is previously, otherwise escaping would be > > > > done. > > > > > > Both is OK for me. Do you want to send a new patch with %2pE? > > > > To me it looks slightly cleaner. > > I don't want to let this one fall through the cracks. Pali, is a new one coming? Perhaps pr_info("\t%*pE\n", (int)sizeof(g->object_id), g->object_id);