From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Dmitry V. Levin" Subject: Re: [PATCH 3/4] drm: Add decoding of i915 ioctls Date: Wed, 10 Jun 2015 01:35:35 +0300 Message-ID: <20150609223535.GB3210@altlinux.org> References: <1433849204-4125-1-git-send-email-patrik.jakobsson@linux.intel.com> <1433849204-4125-4-git-send-email-patrik.jakobsson@linux.intel.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0538410419==" Return-path: Received: from pegasus3.altlinux.org (pegasus3.altlinux.org [194.107.17.103]) by gabe.freedesktop.org (Postfix) with ESMTP id F23C689D8E for ; Tue, 9 Jun 2015 15:35:35 -0700 (PDT) In-Reply-To: <1433849204-4125-4-git-send-email-patrik.jakobsson@linux.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Patrik Jakobsson Cc: intel-gfx@lists.freedesktop.org, strace-devel@lists.sourceforge.net List-Id: intel-gfx@lists.freedesktop.org --===============0538410419== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qcHopEYAB45HaUaB" Content-Disposition: inline --qcHopEYAB45HaUaB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 09, 2015 at 01:26:43PM +0200, Patrik Jakobsson wrote: [...] > +static int i915_getparam(struct tcb *tcp, const unsigned int code, long = arg) > +{ > + struct drm_i915_getparam param; > + int value; > + > + if (entering(tcp) || umove(tcp, arg, ¶m)) > + return 0; > + if (umove(tcp, (long)param.value, &value)) > + return 0; > + > + tprintf(", {param=3D"); We use tprints to print regular strings. > +static int i915_setparam(struct tcb *tcp, const unsigned int code, long = arg) > +{ > + struct drm_i915_setparam param; > + > + if (exiting(tcp) || umove(tcp, arg, ¶m)) > + return 0; In this and other ioctl printers that unconditionally return 0 on exit, wouldn't the caller treat it as an ioctl that hasn't been printed? --=20 ldv --qcHopEYAB45HaUaB Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlV3ajcACgkQfKvmrJ41Nh5EWgCeO7nCUl0ssVv0BLoaZDeuP2Au JKYAniy8YW0UpY3k7Wf2AetsU/VMnrPg =pXmV -----END PGP SIGNATURE----- --qcHopEYAB45HaUaB-- --===============0538410419== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KSW50ZWwtZ2Z4 IG1haWxpbmcgbGlzdApJbnRlbC1nZnhAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9pbnRlbC1nZngK --===============0538410419==--