Skip to content

Commit

Permalink
Move the comma to the correct place.
Browse files Browse the repository at this point in the history
  • Loading branch information
gvnn3 committed Oct 26, 2010
1 parent 3356139 commit 2f8eaff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dep/sys.c
Expand Up @@ -139,14 +139,14 @@ displayStats(RunTimeOpts * rtOpts, PtpClock * ptpClock)
gettimeofday(&now, 0);
strftime(time_str, MAXTIMESTR, "%Y-%m-%d %X", localtime(&now.tv_sec));

len += snprintf(sbuf + len, sizeof(sbuf) - len, "%s%s:%06d, %s,",
len += snprintf(sbuf + len, sizeof(sbuf) - len, "%s%s:%06d, %s",
rtOpts->csvStats ? "\n" : "\rstate: ",
time_str, (int)now.tv_usec,
translatePortState(ptpClock));

if (ptpClock->port_state == PTP_SLAVE) {
len += snprint_PortIdentity(sbuf + len, sizeof(sbuf) - len,
ptpClock->parent_uuid, ptpClock->parent_port_id, " ");
ptpClock->parent_uuid, ptpClock->parent_port_id, ", ");

len += snprintf(sbuf + len, sizeof(sbuf) - len,
", %s%d.%09d" ", %s%d.%09d",
Expand Down

0 comments on commit 2f8eaff

Please sign in to comment.