Hi Hoang, ACK from me.
Best Regards, Thien -----Original Message----- From: Hoang Minh Vu <[email protected]> Sent: Wednesday, January 26, 2022 5:44 AM To: Thang Duc Nguyen <[email protected]>; Minh Hon Chau <[email protected]>; Thien Minh Huynh <[email protected]> Cc: [email protected]; Hoang Minh Vu <[email protected]> Subject: [PATCH 1/1] dtm: fix osaflog tool to work with short argument [#3295] osaflog command doesn't work when using short argument like -p -r -a the cause of the problem is in the optstring of getopt_long function solution is to change the optstring --- src/dtm/tools/osaflog.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dtm/tools/osaflog.cc b/src/dtm/tools/osaflog.cc index 4de64f4d3..545d800ec 100644 --- a/src/dtm/tools/osaflog.cc +++ b/src/dtm/tools/osaflog.cc @@ -117,7 +117,7 @@ int main(int argc, char** argv) { exit(EXIT_FAILURE); } - while ((option = getopt_long(argc, argv, "m:b:p:f:e:i:ra:F:T:", + while ((option = getopt_long(argc, argv, "m:b:fprade:i:F:T:", long_options, &long_index)) != -1) { switch (option) { case 'p': -- 2.17.1 _______________________________________________ Opensaf-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensaf-devel
