X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Ftools%2Fgsprintconsole.c;h=7f3dae2a1d79a509571fdcb39d69c4b1e06a6ab9;hb=eb761d89890df8d74532dd4faad118db18fd3b7d;hp=fbd67e377fac9556c695af0d1d3656b182fc985e;hpb=65ed2eb92c8bc98ae1cf810e72b1c0fc041656fe;p=com%2Fgs-lite.git diff --git a/src/tools/gsprintconsole.c b/src/tools/gsprintconsole.c index fbd67e3..7f3dae2 100644 --- a/src/tools/gsprintconsole.c +++ b/src/tools/gsprintconsole.c @@ -158,16 +158,24 @@ int main(int argc, char* argv[]) { gs_uint32_t tip1,tip2,tip3,tip4; gs_sp_t instance_name; + char sep_str[2]; + gs_uint32_t tlimit = 0; // time limit in seconds time_t start_time, curr_time; + + sep_str[0] = '|'; + sep_str[1] = '\0'; gsopenlog(argv[0]); // by default the output will go to stdout outf = stdout; - while ((ch = getopt(argc, argv, "l:p:r:veXD")) != -1) { + while ((ch = getopt(argc, argv, "l:p:r:sveXD")) != -1) { switch (ch) { + case 's': + sep_str[0]=','; + break; case 'r': bufsz=atoi(optarg); break; @@ -438,7 +446,8 @@ int main(int argc, char* argv[]) { linebuf[0]=0; break; } - if (y