Changeset d199a6f in mainline for uspace/srv/bd/hr/raid5.c


Ignore:
Timestamp:
2024-11-15T21:32:20Z (6 months ago)
Author:
Miroslav Cimerman <mc@…>
Children:
7b359f5
Parents:
dfa2313
Message:

hr: DPRINTF, ERR_PRINTF → HR_DEBUG, HR_ERROR

Also add HR_WARN for warning level.

File:
1 edited

Legend:

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

    rdfa2313 rd199a6f  
    9696
    9797        if (new_volume->dev_no < 3) {
    98                 ERR_PRINTF("RAID 5 array needs at least 3 devices");
     98                HR_ERROR("RAID 5 array needs at least 3 devices\n");
    9999                return EINVAL;
    100100        }
     
    137137static errno_t hr_raid5_bd_open(bd_srvs_t *bds, bd_srv_t *bd)
    138138{
    139         DPRINTF("hr_bd_open()\n");
     139        HR_DEBUG("hr_bd_open()\n");
    140140        return EOK;
    141141}
     
    143143static errno_t hr_raid5_bd_close(bd_srv_t *bd)
    144144{
    145         DPRINTF("hr_bd_close()\n");
     145        HR_DEBUG("hr_bd_close()\n");
    146146        return EOK;
    147147}
     
    211211        case 0:
    212212                if (old_state != HR_VOL_ONLINE) {
    213                         DPRINTF("RAID 5 has all extents online, "
     213                        HR_WARN("RAID 5 has all extents online, "
    214214                            "marking \"%s\" (%lu) as ONLINE",
    215215                            vol->devname, vol->svc_id);
     
    219219        case 1:
    220220                if (old_state != HR_VOL_DEGRADED) {
    221                         ERR_PRINTF("RAID 5 array \"%s\" (%lu) has 1 extent "
     221                        HR_WARN("RAID 5 array \"%s\" (%lu) has 1 extent "
    222222                            "inactive, marking as DEGRADED",
    223223                            vol->devname, vol->svc_id);
     
    227227        default:
    228228                if (old_state != HR_VOL_FAULTY) {
    229                         ERR_PRINTF("RAID 5 array \"%s\" (%lu) has more "
     229                        HR_WARN("RAID 5 array \"%s\" (%lu) has more "
    230230                            "than one 1 extent inactive, marking as FAULTY",
    231231                            vol->devname, vol->svc_id);
Note: See TracChangeset for help on using the changeset viewer.