[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20230309090923.dq72s6ovjo5lsyxq@sgarzare-redhat>
Date: Thu, 9 Mar 2023 10:09:23 +0100
From: Stefano Garzarella <sgarzare@...hat.com>
To: Rong Tao <rtoax@...mail.com>
Cc: Rong Tao <rongtao@...tc.cn>, "Michael S. Tsirkin" <mst@...hat.com>,
Jason Wang <jasowang@...hat.com>,
"open list:VIRTIO CORE AND NET DRIVERS"
<virtualization@...ts.linux-foundation.org>,
open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v2] tools/virtio: virtio_test -h,--help should return
directly
On Thu, Mar 09, 2023 at 04:42:50PM +0800, Rong Tao wrote:
>From: Rong Tao <rongtao@...tc.cn>
>
>When we get help information, we should return directly, and we should not
>execute test cases. Move the exit() directly into the help() function and
>remove it from case '?'.
>
>Signed-off-by: Rong Tao <rongtao@...tc.cn>
>---
>v2: help(): exit with a value different from 0 (e.g. 2).
>v1: https://lore.kernel.org/lkml/tencent_4B5122C4158323A1D1ACA04B3295F1579207@qq.com/
>---
> tools/virtio/virtio_test.c | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
Acked-by: Stefano Garzarella <sgarzare@...hat.com>
Powered by blists - more mailing lists