Commit 96d6ef68 authored by Joanne Hugé's avatar Joanne Hugé

Reduce prints length

parent 6091bae3
...@@ -218,7 +218,7 @@ int main(int argc, char *argv[]) { ...@@ -218,7 +218,7 @@ int main(int argc, char *argv[]) {
int64_t user_space_time = stats->packet_info.userspace_exit_ts - stats->packet_info.userspace_enter_ts; int64_t user_space_time = stats->packet_info.userspace_exit_ts - stats->packet_info.userspace_enter_ts;
int64_t kernel_space_time = stats->packet_info.kernelspace_ts - stats->packet_info.userspace_exit_ts; int64_t kernel_space_time = stats->packet_info.kernelspace_ts - stats->packet_info.userspace_exit_ts;
printf("(%*d) User and kernel space time: %*" PRIi64 ", %" PRIi64 "\n", printf("(%*d) User and kernel space time: %*" PRIi64 ", %" PRIi64 "\n",
10, stats->nb_cycles, 10, user_space_time, kernel_space_time); 10, stats->nb_cycles, 10, user_space_time, kernel_space_time);
} }
......
...@@ -227,7 +227,7 @@ int main(int argc, char *argv[]) { ...@@ -227,7 +227,7 @@ int main(int argc, char *argv[]) {
if (tsn_task == RECV_PACKET_TASK) { if (tsn_task == RECV_PACKET_TASK) {
diff = ((int64_t)stats->max_interval) - stats->min_interval; diff = ((int64_t)stats->max_interval) - stats->min_interval;
printf("(%*d) Jitter : %*" PRIi64 " [Packet data: %*s] [Lost packets: %*d]\n", printf("(%*d) Jitter : %*" PRIi64 " [Packet data: %*s] [Lost packets: %*d]\n",
10, stats->packets_received, 10, stats->packets_received,
10, diff, 10, diff,
10, stats->packet_info.data, 10, stats->packet_info.data,
...@@ -238,7 +238,7 @@ int main(int argc, char *argv[]) { ...@@ -238,7 +238,7 @@ int main(int argc, char *argv[]) {
int64_t user_space_time = stats->packet_info.userspace_exit_ts - stats->packet_info.userspace_enter_ts; int64_t user_space_time = stats->packet_info.userspace_exit_ts - stats->packet_info.userspace_enter_ts;
int64_t kernel_space_time = stats->packet_info.kernelspace_ts - stats->packet_info.userspace_exit_ts; int64_t kernel_space_time = stats->packet_info.kernelspace_ts - stats->packet_info.userspace_exit_ts;
printf("(%*d) User and kernel space time: %*" PRIi64 ", %" PRIi64 "\n", printf("(%*d) User and kernel space time: %*" PRIi64 ", %" PRIi64 "\n",
10, stats->packets_received, 10, user_space_time, kernel_space_time); 10, stats->packets_received, 10, user_space_time, kernel_space_time);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment