]> Git Repo - qemu.git/commitdiff
virtiofsd: passthrough_ll: set FUSE_LOG_INFO as default log_level
authorMisono Tomohiro <[email protected]>
Thu, 8 Oct 2020 11:01:48 +0000 (20:01 +0900)
committerDr. David Alan Gilbert <[email protected]>
Mon, 26 Oct 2020 18:35:32 +0000 (18:35 +0000)
Just noticed that although help message says default log level is INFO,
it is actually 0 (EMRGE) and no mesage will be shown when error occurs.
It's better to follow help message.

Signed-off-by: Misono Tomohiro <[email protected]>
Message-Id: <20201008110148.2757734[email protected]>
Reviewed-by: Stefan Hajnoczi <[email protected]>
Signed-off-by: Dr. David Alan Gilbert <[email protected]>
tools/virtiofsd/passthrough_ll.c

index ff53df4451006ab604266b25b04f2ee2da976522..13fdb12367f27ae15d0b3fc36d89cb6c5a94c875 100644 (file)
@@ -2878,12 +2878,11 @@ int main(int argc, char *argv[])
         goto err_out1;
     }
 
-    /*
-     * log_level is 0 if not configured via cmd options (0 is LOG_EMERG,
-     * and we don't use this log level).
-     */
     if (opts.log_level != 0) {
         current_log_level = opts.log_level;
+    } else {
+        /* default log level is INFO */
+        current_log_level = FUSE_LOG_INFO;
     }
     lo.debug = opts.debug;
     if (lo.debug) {
This page took 0.025118 seconds and 4 git commands to generate.