From: Daniel Wagner Date: Wed, 18 Jan 2023 17:16:36 +0000 (+0100) Subject: nvme: Ingore LOG_NOTICE level X-Git-Tag: v2.3~19^2~3 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=baee1f0a189326f0d285ad8fdf32db70c2dd1a87;p=users%2Fsagi%2Fnvme-cli.git nvme: Ingore LOG_NOTICE level We don't use the LOG_NOTICE level at all. That means a single '-v' has no impact. So just ingore it and we get some useful information starting with LOG_INFO. Signed-off-by: Daniel Wagner --- diff --git a/nvme.c b/nvme.c index b2cd5da5..4672d379 100644 --- a/nvme.c +++ b/nvme.c @@ -215,6 +215,12 @@ int map_log_level(int verbose, bool quiet) { int log_level; + /* + * LOG_NOTICE is unsued thus the user has to provide two 'v' for getting + * any feedback at all. Thus skip this level + */ + verbose++; + switch (verbose) { case 0: log_level = LOG_WARNING;