Changeset f93b8869 in mainline for uspace/app/hrctl/hrctl.c


Ignore:
Timestamp:
2025-06-28T13:14:00Z (4 weeks ago)
Author:
Miroslav Cimerman <mc@…>
Children:
8ad48d1c
Parents:
2de7c1f
Message:

hrctl: use single quotes for volume name

Also put ' ' before byte SI.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/hrctl/hrctl.c

    r2de7c1f rf93b8869  
    641641        const char *devname;
    642642
    643         printf("volume: \"%s\" (%" PRIun ")\n", info->devname, info->svc_id);
     643        printf("volume: '%s' (%" PRIun ")\n", info->devname, info->svc_id);
    644644
    645645        printf("|   metadata type: %s\n",
     
    652652        if (info->strip_size > 0) {
    653653                if (info->strip_size < 1024) {
    654                         printf("|      strip size: %" PRIu32 "B\n",
     654                        printf("|      strip size: %" PRIu32 " B\n",
    655655                            info->strip_size);
    656656                } else {
    657                         printf("|      strip size: %" PRIu32 "KiB\n",
     657                        printf("|      strip size: %" PRIu32 " KiB\n",
    658658                            info->strip_size / 1024);
    659659                }
     
    663663        printf("|no. of hotspares: %zu\n", info->hotspare_no);
    664664        printf("|number of blocks: %" PRIu64 "\n", info->data_blkno);
    665         printf("|      block size: %zuB\n", info->bsize);
     665        printf("|      block size: %zu B\n", info->bsize);
    666666
    667667        capa_spec_t capa;
     
    763763                                return EXIT_FAILURE;
    764764                        }
    765                         printf("volume \"%s\" (%" PRIun ") %s\n", devname,
     765                        printf("volume '%s' (%" PRIun ") %s\n", devname,
    766766                            svc_id, hr_get_vol_state_str(state));
    767767
Note: See TracChangeset for help on using the changeset viewer.