Received: from eggs.gnu.org ([2001:4830:134:3::10]:43875) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZD92E-0003N8-TO for qemu-devel@nongnu.org; Thu, 09 Jul 2015 06:26:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZD92B-0006aJ-DQ for qemu-devel@nongnu.org; Thu, 09 Jul 2015 06:26:30 -0400 Date: Thu, 9 Jul 2015 11:26:23 +0100 From: Stefan Hajnoczi Message-ID: <20150709102623.GC28530@stefanha-thinkpad.redhat.com> References: <1435611386-29316-1-git-send-email-jsnow@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0lnxQi9hkpPO77W3" Content-Disposition: inline In-Reply-To: <1435611386-29316-1-git-send-email-jsnow@redhat.com> Subject: Re: [Qemu-devel] [PATCH v2] trivial: remove trailing newline from error_report List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: John Snow Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org --0lnxQi9hkpPO77W3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 29, 2015 at 04:56:26PM -0400, John Snow wrote: > Minor cleanup. >=20 > Signed-off-by: John Snow > --- > hw/ide/ahci.c | 2 +- > hw/vfio/platform.c | 2 +- > net/tap-linux.c | 4 ++-- > 3 files changed, 4 insertions(+), 4 deletions(-) Reviewed-by: Stefan Hajnoczi Laszlo Ersek suggested a compile-time check (e.g. BUILD_BUG_ON()). Have you looked into this? Perhaps something along the lines of: BUILD_BUG_ON(__builtin_constant_p(fmt) && __builtin_strlen(fmt) > 0 && fmt[__builtin_strlen(fmt) - 1] =3D=3D '\n') --0lnxQi9hkpPO77W3 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVnkxPAAoJEJykq7OBq3PI/E4H/RlyTdn/95j4RxZy8ZdcTTsb 1Uq/BGUs5dTmxX97KuEcPLskqGRkKL7dx9Jmxi7TEM/8xQcP/19+mI9liElJjbST P/B7vUmbDZJjmxd87ZZXckfPcfqdvTH0NKs8t+1CwB9UtH+vVPPmi+5Vs3MSlvUC OdB0Hz56uhgJ0TtZOH8/2PtSglvUZzdz16FaXGWutqoZtY5dI7qnJT/JpzAGr7su k0DEnOobJp7D8vAjzld3QboTJoHMwrHrmYsOCvzZIL0+R36gUxEayIJgZH3sD686 8OhT01K6PyzaskhIesS9Hp4Vfu8n9Lfc3bZSnTgI9o4XY5s3Ah7g0uxa+Vw+YNM= =6BT2 -----END PGP SIGNATURE----- --0lnxQi9hkpPO77W3--