diff --git a/iosnoop b/iosnoop index c5de4e3..445c92c 100755 --- a/iosnoop +++ b/iosnoop @@ -206,7 +206,7 @@ if ! echo 1 > events/block/$b_start/enable || \ fi (( opt_start )) && printf "%-14s " "STARTs" (( opt_end )) && printf "%-14s " "ENDs" -printf "%-16.16s %-6s %-4s %-8s %-12s %-6s %8s\n" \ +printf "%-12.12s %-6s %-4s %-8s %-12s %-6s %8s\n" \ "COMM" "PID" "TYPE" "DEV" "BLOCK" "BYTES" "LATms" # @@ -277,7 +277,7 @@ fi ) | $awk -v o=$offset -v opt_name=$opt_name -v name=$name \ printf "%-14s ", starts[dev, loc] if (opt_end) printf "%-14s ", time - printf "%-16.16s %-6s %-4s %-8s %-12s %-6s %8s\n", + printf "%-12.12s %-6s %-4s %-8s %-12s %-6s %8s\n", comm, pid, dir, dev, loc, nsec * 512, latency if (!opt_duration) fflush() diff --git a/man/man8/iosnoop.8 b/man/man8/iosnoop.8 index 65aab1e..a9993f3 100644 --- a/man/man8/iosnoop.8 +++ b/man/man8/iosnoop.8 @@ -116,7 +116,7 @@ Trace I/O queued when PID 181 was on-CPU (more accurate), and include queue time .TP COMM Process name (command) for the PID that was on-CPU when the I/O was issued, or -inserted if \-Q is used. See PID. +inserted if \-Q is used. See PID. This column is truncated to 12 characters. .TP PID Process ID which was on-CPU when the I/O was issued, or inserted if \-Q is