prfl_btrfs(btrfs_space_info_flags, args->profiles,
"BTRFS_BLOCK_GROUP_???");
print_uint64(", usage=", args->usage);
- printf(", devid=makedev(%u, %u)",
+ printf(", devid=makedev(%#x, %#x)",
major(args->devid), minor(args->devid));
print_uint64(", pstart=", args->pstart);
print_uint64(", pend=", args->pend);
ioctl(-1, BTRFS_IOC_SCRUB_CANCEL, NULL);
printf("ioctl(-1, %s) = -1 EBADF (%m)\n", ioc(BTRFS_IOC_SCRUB_CANCEL));
- printf("ioctl(-1, %s, {devid=makedev(%u, %u)",
+ printf("ioctl(-1, %s, {devid=makedev(%#x, %#x)",
ioc(BTRFS_IOC_SCRUB), major(args.devid), minor(args.devid));
print_uint64(", start=", args.start);
print_uint64(", end=", args.end);
ioc(BTRFS_IOC_SCRUB_PROGRESS));
ioctl(-1, BTRFS_IOC_SCRUB_PROGRESS, &args);
- printf("ioctl(-1, %s, {devid=makedev(%u, %u)}) = -1 EBADF (%m)\n",
+ printf("ioctl(-1, %s, {devid=makedev(%#x, %#x)}) = -1 EBADF (%m)\n",
ioc(BTRFS_IOC_SCRUB_PROGRESS),
major(args.devid), minor(args.devid));
}
ioctl(-1, BTRFS_IOC_DEV_INFO, &args);
printf("ioctl(-1, %s, "
- "{devid=makedev(%u, %u), uuid=%s}) = -1 EBADF (%m)\n",
+ "{devid=makedev(%#x, %#x), uuid=%s}) = -1 EBADF (%m)\n",
ioc(BTRFS_IOC_DEV_INFO), major(args.devid), minor(args.devid),
uuid_reference_string);
}
ioctl(-1, BTRFS_IOC_GET_DEV_STATS, NULL);
printf("ioctl(-1, %s, NULL) = -1 EBADF (%m)\n", ioc(BTRFS_IOC_GET_DEV_STATS));
- printf("ioctl(-1, %s, {devid=makedev(%u, %u)"
+ printf("ioctl(-1, %s, {devid=makedev(%#x, %#x)"
", nr_items=%" PRI__u64 ", flags=",
ioc(BTRFS_IOC_GET_DEV_STATS),
major(args.devid), minor(args.devid), args.nr_items);
if (write_ok) {
unsigned int i;
args.flags = BTRFS_DEV_STATS_RESET;
- printf("ioctl(%d, %s, {devid=makedev(%u, %u)"
+ printf("ioctl(%d, %s, {devid=makedev(%#x, %#x)"
", nr_items=%" PRI__u64 ", flags=",
btrfs_test_dir_fd, ioc(BTRFS_IOC_GET_DEV_STATS),
major(args.devid), minor(args.devid), args.nr_items);
saved_errno = errno;
printf("ioctl(-1, %s, "
"{cmd=%sBTRFS_IOCTL_DEV_REPLACE_CMD_START%s"
- ", start={srcdevid=makedev(%u, %u)"
+ ", start={srcdevid=makedev(%#x, %#x)"
", cont_reading_from_srcdev_mode=",
ioc(BTRFS_IOC_DEV_REPLACE),
verbose_xlat ? "0 /* " : "", verbose_xlat ? " */" : "",
memcpy(dm_arg->uuid, str129, sizeof(dm_arg->uuid));
ioctl(-1, DM_VERSION, dm_arg);
printf("ioctl(-1, DM_VERSION, {version=4.1.2, data_size=%zu, "
- "dev=makedev(18, 52), name=\"%.127s\"..., uuid=\"%.128s\"..., "
+ "dev=makedev(0x12, 0x34), name=\"%.127s\"..., uuid=\"%.128s\"..., "
"flags=0}) = -1 EBADF (%m)\n",
min_sizeof_dm_ioctl, str129, str129);
ioctl(-1, DM_VERSION, dm_arg);
printf("ioctl(-1, DM_VERSION, "
"{version=4.1.2, data_size=%zu, "
- "dev=makedev(18, 52), name=\"nnn\", uuid=\"uuu\", flags=0}) = "
+ "dev=makedev(0x12, 0x34), name=\"nnn\", uuid=\"uuu\", flags=0}) = "
"-1 EBADF (%m)\n", min_sizeof_dm_ioctl);
/* Zero dev, name, uuid */
ioctl(-1, DM_VERSION, dm_arg);
printf("ioctl(-1, DM_VERSION, "
"{version=4.1.2, data_size=%zu, "
- "dev=makedev(18, 52), name=\"nnn\", uuid=\"uuu\", flags="
+ "dev=makedev(0x12, 0x34), name=\"nnn\", uuid=\"uuu\", flags="
"DM_READONLY_FLAG|DM_SUSPEND_FLAG|DM_EXISTS_FLAG|"
"DM_PERSISTENT_DEV_FLAG|DM_STATUS_TABLE_FLAG|"
"DM_ACTIVE_PRESENT_FLAG|DM_INACTIVE_PRESENT_FLAG|"
ioctl(-1, DM_VERSION, &s);
printf("ioctl(-1, DM_VERSION, "
"{version=4.1.2, data_size=%zu, "
- "dev=makedev(18, 52), name=\"nnn\", uuid=\"uuu\", flags=0}) = "
+ "dev=makedev(0x12, 0x34), name=\"nnn\", uuid=\"uuu\", flags=0}) = "
"-1 EBADF (%m)\n", sizeof(s.ioc));
init_s(dm_arg, min_sizeof_dm_ioctl, 0);
ioctl(-1, dummy_check_cmds[i].arg, dm_arg);
printf("ioctl(-1, %s, {version=4.1.2, data_size=%zu%s, "
- "dev=makedev(18, 52), name=\"nnn\", uuid=\"uuu\"%s, "
+ "dev=makedev(0x12, 0x34), name=\"nnn\", uuid=\"uuu\"%s, "
"flags=0}) = -1 EBADF (%m)\n",
dummy_check_cmds[i].str, min_sizeof_dm_ioctl,
dummy_check_cmds[i].has_params ? ", data_start=0" : "",
ioctl(-1, DM_DEV_SUSPEND, &s);
printf("ioctl(-1, DM_DEV_SUSPEND, "
"{version=4.1.2, data_size=%zu, "
- "dev=makedev(18, 52), name=\"nnn\", uuid=\"uuu\", "
+ "dev=makedev(0x12, 0x34), name=\"nnn\", uuid=\"uuu\", "
"flags=DM_SUSPEND_FLAG}) = -1 EBADF (%m)\n", sizeof(s.ioc));
init_s(&s.ioc, sizeof(s.ioc), 0);
s.ioc.event_nr = 0xbadc0ded;
ioctl(-1, DM_DEV_SUSPEND, &s);
printf("ioctl(-1, DM_DEV_SUSPEND, "
- "{version=4.1.2, data_size=%zu, dev=makedev(18, 52), "
+ "{version=4.1.2, data_size=%zu, dev=makedev(0x12, 0x34), "
"name=\"nnn\", uuid=\"uuu\", event_nr=3134983661, "
"flags=0}) = -1 EBADF (%m)\n", sizeof(s.ioc));
ioctl(-1, DM_TABLE_LOAD, &s);
printf("ioctl(-1, DM_TABLE_LOAD, "
"{version=4.1.2, data_size=%u, data_start=%u, "
- "dev=makedev(18, 52), name=\"nnn\", uuid=\"uuu\", "
+ "dev=makedev(0x12, 0x34), name=\"nnn\", uuid=\"uuu\", "
"target_count=1, flags=0, "
# if VERBOSE
"{sector_start=16, length=32, target_type=\"tgt\", "
ioctl(-1, DM_TABLE_LOAD, dm_arg);
printf("ioctl(-1, DM_TABLE_LOAD, "
"{version=4.1.2, data_size=%zu, data_start=%zu, "
- "dev=makedev(18, 52), name=\"nnn\", uuid=\"uuu\", "
+ "dev=makedev(0x12, 0x34), name=\"nnn\", uuid=\"uuu\", "
"target_count=0, flags=0}) = -1 EBADF (%m)\n",
sizeof(*dm_arg), min_sizeof_dm_ioctl);
ioctl(-1, DM_TABLE_LOAD, dm_arg);
printf("ioctl(-1, DM_TABLE_LOAD, "
"{version=4.1.2, data_size=%zu, data_start=%u, "
- "dev=makedev(18, 52), name=\"nnn\", uuid=\"uuu\", "
+ "dev=makedev(0x12, 0x34), name=\"nnn\", uuid=\"uuu\", "
"target_count=1234, flags=0, "
# if VERBOSE
"??? /* misplaced struct dm_target_spec */"
ioctl(-1, DM_TABLE_LOAD, dm_arg_open1);
printf("ioctl(-1, DM_TABLE_LOAD, "
"{version=4.1.2, data_size=%zu, data_start=%zu, "
- "dev=makedev(18, 52), name=\"nnn\", uuid=\"uuu\", "
+ "dev=makedev(0x12, 0x34), name=\"nnn\", uuid=\"uuu\", "
"target_count=3735936673, flags=0, "
# if VERBOSE
"%p"
errstr = sprintrc(rc);
printf("ioctl(-1, DM_TABLE_LOAD, "
"{version=4.1.2, data_size=%zu, data_start=%zu, "
- "dev=makedev(18, 52), name=\"nnn\", uuid=\"uuu\", "
+ "dev=makedev(0x12, 0x34), name=\"nnn\", uuid=\"uuu\", "
"target_count=2, flags=0, ",
sizeof(*dm_arg_open2),
offsetof(struct dm_table_open_test, target1));
errstr = sprintrc(rc);
printf("ioctl(-1, DM_TABLE_LOAD, "
"{version=4.1.2, data_size=%zu, data_start=%zu, "
- "dev=makedev(18, 52), name=\"nnn\", uuid=\"uuu\", "
+ "dev=makedev(0x12, 0x34), name=\"nnn\", uuid=\"uuu\", "
"target_count=4, flags=0, ",
offsetof(struct dm_table_open_test, target5),
offsetof(struct dm_table_open_test, target0));
errstr = sprintrc(rc);
printf("ioctl(-1, DM_TABLE_LOAD, "
"{version=4.1.2, data_size=%zu, data_start=%zu, "
- "dev=makedev(18, 52), name=\"nnn\", uuid=\"uuu\", "
+ "dev=makedev(0x12, 0x34), name=\"nnn\", uuid=\"uuu\", "
"target_count=3134983661, flags=0, ",
sizeof(*dm_arg_open3),
offsetof(struct dm_table_open_test, target0));
ioctl(-1, DM_TARGET_MSG, &s);
printf("ioctl(-1, DM_TARGET_MSG, "
"{version=4.1.2, data_size=%u, data_start=%u, "
- "dev=makedev(18, 52), name=\"nnn\", uuid=\"uuu\", flags=0, "
+ "dev=makedev(0x12, 0x34), name=\"nnn\", uuid=\"uuu\", flags=0, "
# if VERBOSE
"{sector=4660, message=\"long targ\"...}"
# else /* !VERBOSE */
ioctl(-1, DM_TARGET_MSG, dm_arg);
printf("ioctl(-1, DM_TARGET_MSG, "
"{version=4.1.2, data_size=%zu, data_start=%zu, "
- "dev=makedev(18, 52), name=\"nnn\", uuid=\"uuu\", flags=0, "
+ "dev=makedev(0x12, 0x34), name=\"nnn\", uuid=\"uuu\", flags=0, "
# if VERBOSE
"??? /* misplaced struct dm_target_msg */"
# else /* !VERBOSE */
ioctl(-1, DM_TARGET_MSG, dm_arg);
printf("ioctl(-1, DM_TARGET_MSG, "
"{version=4.1.2, data_size=%zu, data_start=%u, "
- "dev=makedev(18, 52), name=\"nnn\", uuid=\"uuu\", flags=0, "
+ "dev=makedev(0x12, 0x34), name=\"nnn\", uuid=\"uuu\", flags=0, "
# if VERBOSE
"??? /* misplaced struct dm_target_msg */"
# else /* !VERBOSE */
ioctl(-1, DM_TARGET_MSG, dm_arg);
printf("ioctl(-1, DM_TARGET_MSG, "
"{version=4.1.2, data_size=%zu, data_start=%zu, "
- "dev=makedev(18, 52), name=\"nnn\", uuid=\"uuu\", flags=0, "
+ "dev=makedev(0x12, 0x34), name=\"nnn\", uuid=\"uuu\", flags=0, "
# if VERBOSE
"%p"
# else /* !VERBOSE */
errstr = sprintrc(rc);
printf("ioctl(-1, DM_TARGET_MSG, "
"{version=4.1.2, data_size=%zu, data_start=%zu, "
- "dev=makedev(18, 52), name=\"nnn\", uuid=\"uuu\", flags=0, ",
+ "dev=makedev(0x12, 0x34), name=\"nnn\", uuid=\"uuu\", flags=0, ",
sizeof(*dm_arg_msg) + 1,
offsetof(struct dm_target_msg_test, msg));
# if VERBOSE
errstr = sprintrc(rc);
printf("ioctl(-1, DM_TARGET_MSG, "
"{version=4.1.2, data_size=%zu, data_start=%zu, "
- "dev=makedev(18, 52), name=\"nnn\", uuid=\"uuu\", flags=0, ",
+ "dev=makedev(0x12, 0x34), name=\"nnn\", uuid=\"uuu\", flags=0, ",
sizeof(*dm_arg_msg), offsetof(struct dm_target_msg_test, msg));
# if VERBOSE
printf("{sector=%" PRI__u64 ", message=\"\"}",
ioctl(-1, DM_DEV_SET_GEOMETRY, &s);
printf("ioctl(-1, DM_DEV_SET_GEOMETRY, "
"{version=4.1.2, data_size=%u, data_start=%u, "
- "dev=makedev(18, 52), name=\"nnn\", uuid=\"uuu\", flags=0, "
+ "dev=makedev(0x12, 0x34), name=\"nnn\", uuid=\"uuu\", flags=0, "
# if VERBOSE
"string=\"10 20 30 \"..."
# else /* !VERBOSE */
ioctl(-1, DM_DEV_RENAME, unaligned_dm_arg);
printf("ioctl(-1, DM_DEV_RENAME, "
"{version=4.1.2, data_size=%zu, data_start=%zu, "
- "dev=makedev(18, 52), name=\"nnn\", uuid=\"uuu\", event_nr=0, "
+ "dev=makedev(0x12, 0x34), name=\"nnn\", uuid=\"uuu\", event_nr=0, "
"flags=0, "
# if VERBOSE
"string=%p"
ioctl(-1, DM_DEV_RENAME, &s);
printf("ioctl(-1, DM_DEV_RENAME, "
"{version=4.1.2, data_size=%u, data_start=3735928559, "
- "dev=makedev(18, 52), name=\"nnn\", uuid=\"uuu\", event_nr=0, "
+ "dev=makedev(0x12, 0x34), name=\"nnn\", uuid=\"uuu\", event_nr=0, "
"flags=0, "
# if VERBOSE
"??? /* misplaced string */"
ioctl(-1, DM_DEV_RENAME, &s);
printf("ioctl(-1, DM_DEV_RENAME, "
"{version=4.1.2, data_size=%u, data_start=%zu, "
- "dev=makedev(18, 52), name=\"nnn\", uuid=\"uuu\", event_nr=0, "
+ "dev=makedev(0x12, 0x34), name=\"nnn\", uuid=\"uuu\", event_nr=0, "
"flags=0, "
# if VERBOSE
"string=\"nn\""
ioctl(-1, DM_DEV_RENAME, &s);
printf("ioctl(-1, DM_DEV_RENAME, "
"{version=4.1.2, data_size=%u, data_start=%u, "
- "dev=makedev(18, 52), name=\"nnn\", uuid=\"uuu\", event_nr=0, "
+ "dev=makedev(0x12, 0x34), name=\"nnn\", uuid=\"uuu\", event_nr=0, "
"flags=0, "
# if VERBOSE
"string=\"new long \"..."
ioctl(-1, DM_TABLE_LOAD, &s);
printf("ioctl(-1, DM_TABLE_LOAD, "
"{version=4.1.2, data_size=%u, data_start=%u, "
- "dev=makedev(18, 52), name=\"nnn\", uuid=\"uuu\", "
+ "dev=makedev(0x12, 0x34), name=\"nnn\", uuid=\"uuu\", "
"target_count=4294967295, flags=0, "
# if VERBOSE
"{sector_start=0, length=0, target_type=\"\", string=\"\"}"