X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Ftools%2Fgsprintconsole_ves.c;h=5bb6205f9dd75b4adc4618c520e971646422647d;hb=ec117682b53b236e06008abd7f670756f7397ca7;hp=9f3afaa17c2a1316510487a91351b5a67a2f31af;hpb=e563aab811d6e4f40c97c958fff81e76f54a9e3e;p=com%2Fgs-lite.git diff --git a/src/tools/gsprintconsole_ves.c b/src/tools/gsprintconsole_ves.c index 9f3afaa..5bb6205 100644 --- a/src/tools/gsprintconsole_ves.c +++ b/src/tools/gsprintconsole_ves.c @@ -91,13 +91,13 @@ static void wait_for_client() { /* make sure we can reuse the common port rapidly */ if (setsockopt(listensockfd, SOL_SOCKET, SO_REUSEPORT, (gs_sp_t )&on, sizeof(on)) != 0) { - gslog(LOG_EMERG,"Error::could not set socket option\n"); + gslog(LOG_EMERG,"Error::could not set socket option"); exit(1); } #endif if (setsockopt(listensockfd, SOL_SOCKET, SO_REUSEADDR, (gs_sp_t )&on, sizeof(on)) != 0) { - gslog(LOG_EMERG,"Error::could not set socket option\n"); + gslog(LOG_EMERG,"Error::could not set socket option"); exit(1); } @@ -254,7 +254,7 @@ int main(int argc, char* argv[]) { } if (get_initinstance(gshub,instance_name,&dummyep,1)!=0) { - gslog(LOG_EMERG,"Did not receive signal that GS is initiated\n"); + gslog(LOG_EMERG,"Did not receive signal that GS is initiated"); } @@ -632,12 +632,12 @@ int main(int argc, char* argv[]) { http_post_request_hdr(curl_endpoint, curl_url, linebuf, &http_code, curl_auth); if(http_code != 200 && http_code != 202){ post_failure_cnt++; - gslog(LOG_WARNING, "http return code is %d\n",http_code); + gslog(LOG_WARNING, "http return code is %d",http_code); } else { post_success_cnt++; } if (((post_success_cnt+post_failure_cnt) % STAT_FREQUENCY) == 0) - gslog(LOG_WARNING, "%s: successful ves posts - %llu, failed ves posts - %llu\n", argv[0], post_success_cnt, post_failure_cnt); + gslog(LOG_WARNING, "%s: successful ves posts - %llu, failed ves posts - %llu", argv[0], post_success_cnt, post_failure_cnt); } if (verbose!=0) fflush(stdout); } else {