Fix a warning message 63/297863/1
authorMichal Bloch <m.bloch@samsung.com>
Fri, 25 Aug 2023 14:13:50 +0000 (16:13 +0200)
committerMichal Bloch <m.bloch@samsung.com>
Fri, 25 Aug 2023 14:28:24 +0000 (16:28 +0200)
Change-Id: I4c546d8e3479b7498c9ed2def85b7f710672b017

src/shared/util_parser.c

index 1d01862..274cadf 100644 (file)
@@ -210,7 +210,7 @@ struct parse_result parse_options(int argc, char **argv, log_print_format defaul
                write_buffer_size = DEFAULT_WRITE_BUFFER_SIZE;
 
        if (mem_algo && mode != DLOGUTIL_MODE_COMPRESSED_MEMORY_DUMP)
-               return (struct parse_result) { .status = PARSE_MISSING_COMPRESSED_BUFFER, };
+               return (struct parse_result) { .status = PARSE_MISSING_COMPRESSED_BUFFER, .which_option = "--mem_algo" };
 
        struct parse_result ret = (struct parse_result) {
                .status = PARSE_OK,