- fprintf (stderr, "proc %d serial %d took %d.%02d seconds\n",
- proc_nr, serial,
- (int) (elapsed_us / 1000000),
- (int) ((elapsed_us / 10000) % 100));
+ fprintf (stderr, "proc %d (%s) took %d.%02d seconds\n",
+ proc_nr,
+ proc_nr >= 0 && proc_nr < GUESTFS_PROC_NR_PROCS
+ ? function_names[proc_nr] : "UNKNOWN PROCEDURE",
+ (int) (elapsed_us / 1000000),
+ (int) ((elapsed_us / 10000) % 100));