Changeset ca7fa5b in mainline for uspace/srv/bd/hr/raid1.c


Ignore:
Timestamp:
2025-04-02T18:24:11Z (6 weeks ago)
Author:
Miroslav Cimerman <mc@…>
Children:
800d188
Parents:
bbcd06e
Message:

hr: use <inttypes.h> macro specifiers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/bd/hr/raid1.c

    rbbcd06e rca7fa5b  
    3838#include <errno.h>
    3939#include <hr.h>
     40#include <inttypes.h>
    4041#include <io/log.h>
    4142#include <ipc/hr.h>
     
    522523        }
    523524
    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);
    526527
    527528        fibril_rwlock_write_lock(&vol->states_lock);
     
    616617        hr_extent_t *rebuild_ext = &vol->extents[bad];
    617618
    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);
    620621
    621622        atomic_store_explicit(&vol->rebuild_blk, 0, memory_order_relaxed);
     
    687688                if (i + 1 >= vol->extent_no) {
    688689                        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",
    691692                                    vol->devname, vol->svc_id);
    692693                        }
     
    694695                        /* for now we have to invalidate the rebuild extent */
    695696                        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",
    699700                                    vol->devname, vol->svc_id);
    700701                                hr_raid1_ext_state_callback(vol, rebuild_idx,
     
    718719                hr_raid1_ext_state_callback(vol, rebuild_idx, rc);
    719720
    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",
    722723                    vol->devname, vol->svc_id, rebuild_idx, str_error(rc));
    723724
Note: See TracChangeset for help on using the changeset viewer.