Changeset 5d96f427 in mainline for uspace/srv/bd/hr/raid0.c


Ignore:
Timestamp:
2024-11-15T16:44:25Z (6 months ago)
Author:
Miroslav Cimerman <mc@…>
Children:
733564a
Parents:
bd51105
git-author:
Miroslav Cimerman <mc@…> (2024-11-15 16:08:11)
git-committer:
Miroslav Cimerman <mc@…> (2024-11-15 16:44:25)
Message:

hr: use DPRINTF and ERR_PRINTF macros from util.h

File:
1 edited

Legend:

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

    rbd51105 r5d96f427  
    8989        for (size_t i = 0; i < vol->dev_no; i++) {
    9090                if (vol->extents[i].status != HR_EXT_ONLINE) {
    91                         log_msg(LOG_DEFAULT, LVL_ERROR,
    92                             "RAID 0 needs all extents to be ONLINE, marking "
    93                             "\"%s\" (%lu) as FAULTY",
     91                        ERR_PRINTF("RAID 0 needs all extents to be ONLINE, "
     92                            "marking \"%s\" (%lu) as FAULTY",
    9493                            vol->devname, vol->svc_id);
    9594                        vol->status = HR_VOL_FAULTY;
     
    104103static errno_t hr_raid0_bd_open(bd_srvs_t *bds, bd_srv_t *bd)
    105104{
    106         log_msg(LOG_DEFAULT, LVL_NOTE, "hr_bd_open()");
     105        DPRINTF("hr_bd_open()\n");
    107106        return EOK;
    108107}
     
    110109static errno_t hr_raid0_bd_close(bd_srv_t *bd)
    111110{
    112         log_msg(LOG_DEFAULT, LVL_NOTE, "hr_bd_close()");
     111        DPRINTF("hr_bd_close()\n");
    113112        return EOK;
    114113}
     
    246245
    247246        if (new_volume->dev_no < 2) {
    248                 log_msg(LOG_DEFAULT, LVL_ERROR,
    249                     "RAID 0 array needs at least 2 devices");
     247                ERR_PRINTF("RAID 0 array needs at least 2 devices");
    250248                return EINVAL;
    251249        }
Note: See TracChangeset for help on using the changeset viewer.