Received: from eggs.gnu.org ([2001:4830:134:3::10]:46350) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dnjMw-0007Tj-Is for qemu-devel@nongnu.org; Fri, 01 Sep 2017 06:40:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dnjMt-0008JO-D4 for qemu-devel@nongnu.org; Fri, 01 Sep 2017 06:40:10 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39032) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dnjMt-0008IR-4X for qemu-devel@nongnu.org; Fri, 01 Sep 2017 06:40:07 -0400 References: <1504190408-11143-1-git-send-email-thuth@redhat.com> <612870af-f8a4-039c-3e97-7590388b9e77@redhat.com> <87o9qudbsk.fsf@dusky.pond.sub.org> From: Thomas Huth Message-ID: <96af6291-8427-89c8-c644-a3d82c3240c8@redhat.com> Date: Fri, 1 Sep 2017 12:39:49 +0200 MIME-Version: 1.0 In-Reply-To: <87o9qudbsk.fsf@dusky.pond.sub.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2] tests: Enable the drive_del test also on s390x List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster , David Hildenbrand Cc: Farhan Ali , Jason J Herne , Michael S Tsirkin , Cornelia Huck , Pierre Morel , Halil Pasic , qemu-devel@nongnu.org, Christian Borntraeger , Stefan Hajnoczi , Cleber Rosa , Dong Jia Shi , Claudio Imbrenda On 01.09.2017 11:10, Markus Armbruster wrote: > David Hildenbrand writes: > >>> static void test_drive_del_device_del(void) >>> { >>> + char *args; >>> + >>> /* Start with a drive used by a device that unplugs instantaneously */ >>> - qtest_start("-drive if=none,id=drive0,file=null-co://,format=raw" >>> - " -device virtio-scsi-pci" >>> - " -device scsi-hd,drive=drive0,id=dev0"); >>> + args = g_strdup_printf("-drive if=none,id=drive0,file=null-co://,format=raw" >>> + " -device virtio-scsi-%s" >>> + " -device scsi-hd,drive=drive0,id=dev0", >> >> Would look better with the spaces at the end of the previous line (so >> all "-device" are aligned), but just my taste. > > The -device *are* aligned, but I get what you mean. > > The advantage of leading rather than trailing space is that the > intention "this is still the same string" is locally obvious both at the > first part's end (no comma) and at the second part's beginning (leading > space). I don't mind either way, but in this case, I think I'd prefer to keep the original formatting with the space at the beginning, for the following two reasons: - The first line is already hitting the 80 columns limit, and I want to avoid complaints from checkpatch.pl - The original author formatted it that way. Thomas