From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750794AbdE0UsS (ORCPT ); Sat, 27 May 2017 16:48:18 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:33911 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750743AbdE0UsQ (ORCPT ); Sat, 27 May 2017 16:48:16 -0400 From: Pali =?utf-8?q?Roh=C3=A1r?= To: Andy Shevchenko Subject: Re: [PATCH] platform/x86: wmi: Fix printing info about WDG structure Date: Sat, 27 May 2017 22:48:13 +0200 User-Agent: KMail/1.13.7 (Linux/3.13.0-117-generic; KDE/4.14.2; x86_64; ; ) Cc: Darren Hart , Andy Shevchenko , Andy Lutomirski , Platform Driver , "linux-kernel@vger.kernel.org" References: <1495885877-7906-1-git-send-email-pali.rohar@gmail.com> <201705271517.30111@pali> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1979575.28rbZ1fWrW"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201705272248.13257@pali> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --nextPart1979575.28rbZ1fWrW Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Saturday 27 May 2017 15:33:14 Andy Shevchenko wrote: > On Sat, May 27, 2017 at 4:17 PM, Pali Roh=C3=A1r > wrote: > > On Saturday 27 May 2017 15:07:09 Andy Shevchenko wrote: > >> On Sat, May 27, 2017 at 2:51 PM, Pali Roh=C3=A1r > >>=20 > >> wrote: > >> > Remove > >> > also reserved member as it does not have any defined meaning or > >> > type yet. > >> >=20 > >> > - pr_info("\treserved: %02X\n", g->reserved); > >>=20 > >> Do we need this? Commit message doesn't clarify. > >=20 > > I wrote to commit message that reserved does not have defined > > meaning nor type. Also reserved overlap with object_id[1] so for > > non-event should not be print at all. And as it is reserved, I > > removed it. >=20 > Oh, indeed. >=20 > >> > + pr_info("\tobject_id: %c%c\n", g->object_id[0], > >> > g->object_id[1]); > >>=20 > >> If this can still contain non-printable characters the %*pE can > >> help instead. > >=20 > > Those are printable ASCII. object_id contains two characters which > > are suffix for ACPI method. > >=20 > > Problem was only for events when we tried to print notify_id as > > object_id. notify_id is binary and overlaps with object_id. >=20 > Okay, got it. But on your opinion does it make sense to do >=20 > pr_info("\tobject_id: %2pE\n", g->object_id); >=20 > instead? >=20 > 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? =2D-=20 Pali Roh=C3=A1r pali.rohar@gmail.com --nextPart1979575.28rbZ1fWrW Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEABECAAYFAlkp5g0ACgkQi/DJPQPkQ1JyEQCfWmTm6K1xSPVvrzCOM/AjcW+m 1ZEAnieq4dK///WcsD3Uv8jh+q07ZZ/J =MKX7 -----END PGP SIGNATURE----- --nextPart1979575.28rbZ1fWrW--