Changeset ca7fa5b in mainline for uspace/lib/device/src/hr.c


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

hr: use <inttypes.h> macro specifiers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/device/src/hr.c

    rbbcd06e rca7fa5b  
    195195        printf("--- vol %zu ---\n", index);
    196196
    197         printf("svc_id: %lu\n", vol_info->svc_id);
     197        printf("svc_id: %" PRIun "\n", vol_info->svc_id);
    198198
    199199        rc = loc_service_get_name(vol_info->svc_id, &devname);
     
    211211        if (vol_info->level == HR_LVL_0 || vol_info->level == HR_LVL_4) {
    212212                if (vol_info->strip_size / 1024 < 1)
    213                         printf("strip size in bytes: %u\n",
     213                        printf("strip size in bytes: %" PRIu32 "\n",
    214214                            vol_info->strip_size);
    215215                else
    216                         printf("strip size: %uK\n",
     216                        printf("strip size: %" PRIu32 "K\n",
    217217                            vol_info->strip_size / 1024);
    218218        }
    219         printf("size in bytes: %luMiB\n",
     219        printf("size in bytes: %" PRIu64 "MiB\n",
    220220            vol_info->nblocks * vol_info->bsize / 1024 / 1024);
    221         printf("size in blocks: %lu\n", vol_info->nblocks);
     221        printf("size in blocks: %" PRIu64 "\n", vol_info->nblocks);
    222222        printf("block size: %zu\n", vol_info->bsize);
    223223
Note: See TracChangeset for help on using the changeset viewer.