1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-08 10:03:17 +03:00

Tidy some log mesgs.

This commit is contained in:
Alasdair Kergon 2005-10-18 13:07:41 +00:00
parent 9fdc84c328
commit a38bf76bab
3 changed files with 8 additions and 6 deletions

View File

@ -1361,10 +1361,16 @@ static struct dm_ioctl *_do_dm_ioctl(struct dm_task *dmt, unsigned command,
if (dmt->no_open_count)
dmi->flags |= DM_SKIP_BDGET_FLAG;
log_debug("dm %s %s %s%s%s %c %.0llu %s [%u]",
log_debug("dm %s %s %s%s%s %s%0" PRIu32 "%s%0" PRIu32
"%s%c %.0llu %s [%u]",
_cmd_data_v4[dmt->type].name,
dmi->name, dmi->uuid, dmt->newname ? " " : "",
dmt->newname ? dmt->newname : "",
dmt->major > 0 ? "(" : "",
dmt->major,
dmt->major > 0 ? ":" : "",
dmt->minor,
dmt->major > 0 ? ") " : "",
dmt->no_open_count ? 'N' : 'O',
dmt->sector, dmt->message ? dmt->message : "",
dmi->data_size);

View File

@ -169,7 +169,6 @@ int dm_task_set_uuid(struct dm_task *dmt, const char *uuid)
int dm_task_set_major(struct dm_task *dmt, int major)
{
dmt->major = major;
log_debug("Setting major: %d", dmt->major);
return 1;
}
@ -177,7 +176,6 @@ int dm_task_set_major(struct dm_task *dmt, int major)
int dm_task_set_minor(struct dm_task *dmt, int minor)
{
dmt->minor = minor;
log_debug("Setting minor: %d", dmt->minor);
return 1;
}

View File

@ -480,10 +480,8 @@ int dm_deptree_deactivate_children(struct deptree_node *dnode, const char *uuid_
}
/* Ignore if it doesn't belong to this VG */
if (strncmp(uuid, uuid_prefix, uuid_prefix_len)) {
stack;
if (strncmp(uuid, uuid_prefix, uuid_prefix_len))
continue;
}
/* Refresh open_count */
if (!_info_by_dev(dinfo->major, dinfo->minor, &info) ||