Changeset ca7fa5b in mainline for uspace/srv/bd/hr/raid1.c
- Timestamp:
- 2025-04-02T18:24:11Z (6 weeks ago)
- Children:
- 800d188
- Parents:
- bbcd06e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/hr/raid1.c
rbbcd06e rca7fa5b 38 38 #include <errno.h> 39 39 #include <hr.h> 40 #include <inttypes.h> 40 41 #include <io/log.h> 41 42 #include <ipc/hr.h> … … 522 523 } 523 524 524 HR_DEBUG("hr_raid1_rebuild(): rebuild finished on \"%s\" (% lu), "525 "extent no. % lu\n", vol->devname, vol->svc_id, rebuild_idx);525 HR_DEBUG("hr_raid1_rebuild(): rebuild finished on \"%s\" (%" PRIun "), " 526 "extent no. %zu\n", vol->devname, vol->svc_id, rebuild_idx); 526 527 527 528 fibril_rwlock_write_lock(&vol->states_lock); … … 616 617 hr_extent_t *rebuild_ext = &vol->extents[bad]; 617 618 618 HR_DEBUG("hr_raid1_rebuild(): starting REBUILD on extent no. % lu (%lu)"619 " \n", bad, rebuild_ext->svc_id);619 HR_DEBUG("hr_raid1_rebuild(): starting REBUILD on extent no. %zu " 620 "(%" PRIun ")\n", bad, rebuild_ext->svc_id); 620 621 621 622 atomic_store_explicit(&vol->rebuild_blk, 0, memory_order_relaxed); … … 687 688 if (i + 1 >= vol->extent_no) { 688 689 if (rc != ENOMEM) { 689 HR_ERROR("rebuild on \"%s\" (% lu), failed due"690 " to too many failed extents\n",690 HR_ERROR("rebuild on \"%s\" (%" PRIun "), " 691 "failed due to too many failed extents\n", 691 692 vol->devname, vol->svc_id); 692 693 } … … 694 695 /* for now we have to invalidate the rebuild extent */ 695 696 if (rc == ENOMEM) { 696 HR_ERROR("rebuild on \"%s\" (% lu), failed due"697 " to too many failed reads, because of not"698 " enough memory\n",697 HR_ERROR("rebuild on \"%s\" (%" PRIun "), " 698 "failed due to too many failed reads, " 699 "because of not enough memory\n", 699 700 vol->devname, vol->svc_id); 700 701 hr_raid1_ext_state_callback(vol, rebuild_idx, … … 718 719 hr_raid1_ext_state_callback(vol, rebuild_idx, rc); 719 720 720 HR_ERROR("rebuild on \"%s\" (% lu), failed due to "721 "the rebuilt extent no. % lu WRITE (rc: %s)\n",721 HR_ERROR("rebuild on \"%s\" (%" PRIun "), failed due to " 722 "the rebuilt extent no. %zu WRITE (rc: %s)\n", 722 723 vol->devname, vol->svc_id, rebuild_idx, str_error(rc)); 723 724
Note:
See TracChangeset
for help on using the changeset viewer.