* Print description of a lock owner */
| 2476 | * Print description of a lock owner |
| 2477 | */ |
| 2478 | static void |
| 2479 | lf_print_owner(struct lock_owner *lo) |
| 2480 | { |
| 2481 | |
| 2482 | if (lo->lo_flags & F_REMOTE) { |
| 2483 | printf("remote pid %d, system %d", |
| 2484 | lo->lo_pid, lo->lo_sysid); |
| 2485 | } else if (lo->lo_flags & F_FLOCK) { |
| 2486 | printf("file %p", lo->lo_id); |
| 2487 | } else { |
| 2488 | printf("local pid %d", lo->lo_pid); |
| 2489 | } |
| 2490 | } |
| 2491 | |
| 2492 | /* |
| 2493 | * Print out a lock. |
no test coverage detected