mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
minor cleanup
This commit is contained in:
parent
871e7fcd1a
commit
b0e25eef22
@ -102,9 +102,11 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
if (list) {
|
if (list) {
|
||||||
do {
|
do {
|
||||||
ret = dm_get_next_registered_device(&dso_name, &device, &events);
|
if (!(ret= dm_get_next_registered_device(&dso_name,
|
||||||
if (!ret) {
|
&device,
|
||||||
printf("%s %s 0x%x\n", dso_name, device, events);
|
&events))) {
|
||||||
|
printf("%s %s 0x%x\n",
|
||||||
|
dso_name, device, events);
|
||||||
free(dso_name);
|
free(dso_name);
|
||||||
free(device);
|
free(device);
|
||||||
}
|
}
|
||||||
@ -112,6 +114,7 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((ret = reg ? dm_register_for_event(dso_name, device, events) :
|
if ((ret = reg ? dm_register_for_event(dso_name, device, events) :
|
||||||
dm_unregister_for_event(dso_name, device, events))) {
|
dm_unregister_for_event(dso_name, device, events))) {
|
||||||
fprintf(stderr, "Failed to %sregister %s: %s\n",
|
fprintf(stderr, "Failed to %sregister %s: %s\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user