Skip to content

Commit

Permalink
Print process id and update local time output format
Browse files Browse the repository at this point in the history
  • Loading branch information
zchokri committed Nov 29, 2016
1 parent 75c0b3c commit 1996135
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion daemons/gptp/linux/shm_test/shm_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,12 @@ int main(int argc, char *argv[])
fprintf(stdout, "ml freq offset %Lf\n", ptpData->ml_freqoffset);
fprintf(stdout, "ls phoffset %ld\n", ptpData->ls_phoffset);
fprintf(stdout, "ls freq offset %Lf\n", ptpData->ls_freqoffset);
fprintf(stdout, "local time %lu\n", ptpData->local_time);
fprintf(stdout, "local time %llu\n", ptpData->local_time);
fprintf(stdout, "sync count %u\n", ptpData->sync_count);
fprintf(stdout, "pdelay count %u\n", ptpData->pdelay_count);
fprintf(stdout, "asCapable %s\n", ptpData->asCapable ? "True" : "False");
fprintf(stdout, "Port State %d\n", (int)ptpData->port_state);
fprintf(stdout, "process_id %d\n", (int)ptpData->process_id);

return 0;
}
Expand Down

0 comments on commit 1996135

Please sign in to comment.