1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

debug: fix stack tracing

Emit stack trace only on log_error path, and avoid on 'expected'
not-found path.
This commit is contained in:
Zdenek Kabelac 2021-10-01 13:44:17 +02:00
parent e30f3c8410
commit b7e9ec0cbf

View File

@ -5015,7 +5015,7 @@ struct volume_group *vg_read(struct cmd_context *cmd, const char *vg_name, const
unlock_vg(cmd, NULL, vg_name);
log_error("VG name not found for vgid %s", vgid);
failure |= FAILED_NOTFOUND;
goto_bad;
goto bad;
}
/*
@ -5037,7 +5037,7 @@ struct volume_group *vg_read(struct cmd_context *cmd, const char *vg_name, const
if (!(vg_read_flags & READ_OK_NOTFOUND))
log_error("Volume group \"%s\" not found", vg_name);
failure |= FAILED_NOTFOUND;
goto_bad;
goto bad;
}
/*
@ -5053,7 +5053,7 @@ struct volume_group *vg_read(struct cmd_context *cmd, const char *vg_name, const
if (!(vg_read_flags & READ_OK_NOTFOUND))
log_error("Volume group \"%s\" not found.", vg_name);
failure |= FAILED_NOTFOUND;
goto_bad;
goto bad;
}
/*
@ -5264,7 +5264,7 @@ bad:
/* caller must unlock_vg and release_vg */
*error_vg = vg;
return_NULL;
return NULL;
}
if (vg) {