diff --git a/src/pv/elapsedtime.c b/src/pv/elapsedtime.c index 2c8878a..e6210e8 100644 --- a/src/pv/elapsedtime.c +++ b/src/pv/elapsedtime.c @@ -25,10 +25,9 @@ */ void pv_elapsedtime_read(struct timespec *return_time) { - /* TODO: use pv_error() rather than fprintf(). */ /*@-unrecog@ *//* splint doesn't know clock_gettime. */ if (0 != clock_gettime(CLOCK_MONOTONIC, return_time)) { - fprintf(stderr, "%s: %s: %s\n", PACKAGE_NAME, "clock_gettime", strerror(errno)); + pv_error("%s: %s", "clock_gettime", strerror(errno)); /*@-exitarg@ *//* The special exit status is explicitly chosen. */ exit(PV_ERROREXIT_TRANSFER); /*@+exitarg@ */