Skip to content

Commit 7098921

Browse files
committed
DXT parser output: change pthered ID from -1 to N/A when not available
1 parent e0ff279 commit 7098921

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

darshan-util/darshan-dxt-logutils.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ void dxt_log_print_posix_file(void *posix_file_rec, char *file_name,
458458
if (rec->num_comps) printf(" ");
459459
}
460460
if (mod_ver[DXT_POSIX_MOD] == 1)
461-
printf(" -1\n");
461+
printf(" N/A\n");
462462
else
463463
printf(" %-20lu\n", io_trace[i].pthread_id);
464464
}
@@ -508,7 +508,7 @@ void dxt_log_print_posix_file(void *posix_file_rec, char *file_name,
508508
}
509509

510510
if (mod_ver[DXT_POSIX_MOD] == 1)
511-
printf(" -1\n");
511+
printf(" N/A\n");
512512
else
513513
printf(" %-20lu\n", io_trace[i].pthread_id);
514514
}
@@ -557,7 +557,7 @@ void dxt_log_print_mpiio_file(void *mpiio_file_rec, char *file_name,
557557
printf("%8s%8" PRId64 "%7s%9d%16" PRId64 "%16" PRId64 "%12.4f%12.4f ", "X_MPIIO", rank, "write", i, offset, length, start_time, end_time);
558558

559559
if (mod_ver[DXT_MPIIO_MOD] <= 2)
560-
printf(" -1\n");
560+
printf(" N/A\n");
561561
else
562562
printf(" %-20lu\n", io_trace[i].pthread_id);
563563
}
@@ -571,7 +571,7 @@ void dxt_log_print_mpiio_file(void *mpiio_file_rec, char *file_name,
571571
printf("%8s%8" PRId64 "%7s%9d%16" PRId64 "%16" PRId64 "%12.4f%12.4f ", "X_MPIIO", rank, "read", (int)(i - write_count), offset, length, start_time, end_time);
572572

573573
if (mod_ver[DXT_MPIIO_MOD] <= 2)
574-
printf(" -1\n");
574+
printf(" N/A\n");
575575
else
576576
printf(" %-20lu\n", io_trace[i].pthread_id);
577577
}

0 commit comments

Comments
 (0)