Mon Apr 15 08:06:36 2024 UTC (24d)
Add a newline to a printf message.


(simonb)
diff -r1.6 -r1.7 src/external/cddl/osnet/dist/uts/common/fs/zfs/vdev.c

cvs diff -r1.6 -r1.7 src/external/cddl/osnet/dist/uts/common/fs/zfs/vdev.c (expand / switch to unified diff)

--- src/external/cddl/osnet/dist/uts/common/fs/zfs/vdev.c 2018/11/15 04:55:06 1.6
+++ src/external/cddl/osnet/dist/uts/common/fs/zfs/vdev.c 2024/04/15 08:06:36 1.7
@@ -3609,27 +3609,27 @@ vdev_deadman(vdev_t *vd) @@ -3609,27 +3609,27 @@ vdev_deadman(vdev_t *vd)
3609 * Look at the head of all the pending queues, 3609 * Look at the head of all the pending queues,
3610 * if any I/O has been outstanding for longer than 3610 * if any I/O has been outstanding for longer than
3611 * the spa_deadman_synctime we panic the system. 3611 * the spa_deadman_synctime we panic the system.
3612 */ 3612 */
3613 fio = avl_first(&vq->vq_active_tree); 3613 fio = avl_first(&vq->vq_active_tree);
3614 delta = gethrtime() - fio->io_timestamp; 3614 delta = gethrtime() - fio->io_timestamp;
3615 if (delta > spa_deadman_synctime(spa)) { 3615 if (delta > spa_deadman_synctime(spa)) {
3616 zfs_dbgmsg("SLOW IO: zio timestamp %lluns, " 3616 zfs_dbgmsg("SLOW IO: zio timestamp %lluns, "
3617 "delta %"PRIu64"ns, last io %lluns", 3617 "delta %"PRIu64"ns, last io %lluns",
3618 fio->io_timestamp, delta, 3618 fio->io_timestamp, delta,
3619 vq->vq_io_complete_ts); 3619 vq->vq_io_complete_ts);
3620 3620
3621 printf("SLOW IO: zio timestamp %lluns, " 3621 printf("SLOW IO: zio timestamp %lluns, "
3622 "delta %"PRIu64"ns, last io %lluns", 3622 "delta %"PRIu64"ns, last io %lluns\n",
3623 fio->io_timestamp, delta, 3623 fio->io_timestamp, delta,
3624 vq->vq_io_complete_ts); 3624 vq->vq_io_complete_ts);
3625 3625
3626 fm_panic("I/O to pool '%s' appears to be " 3626 fm_panic("I/O to pool '%s' appears to be "
3627 "hung on vdev guid %llu at '%s'.", 3627 "hung on vdev guid %llu at '%s'.",
3628 spa_name(spa), 3628 spa_name(spa),
3629 (long long unsigned int) vd->vdev_guid, 3629 (long long unsigned int) vd->vdev_guid,
3630 vd->vdev_path); 3630 vd->vdev_path);
3631 } 3631 }
3632 } 3632 }
3633 mutex_exit(&vq->vq_lock); 3633 mutex_exit(&vq->vq_lock);
3634 } 3634 }
3635} 3635}