summaryrefslogtreecommitdiffstats
path: root/tools/lvcreate.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2009-07-15 20:02:46 +0000
committerAlasdair Kergon <agk@redhat.com>2009-07-15 20:02:46 +0000
commitb8f47d5f69ca666623ac83e0aea986f582a3a0ae (patch)
tree6846b3a5c6770257c40e209f4c29720e9762fcea /tools/lvcreate.c
parent99a5d8a9c494847528e9ada989e55174814f808a (diff)
downloadlvm2-b8f47d5f69ca666623ac83e0aea986f582a3a0ae.tar.gz
lvm2-b8f47d5f69ca666623ac83e0aea986f582a3a0ae.tar.xz
lvm2-b8f47d5f69ca666623ac83e0aea986f582a3a0ae.zip
Use log_error macro consistently throughout in place of log_err.
Diffstat (limited to 'tools/lvcreate.c')
-rw-r--r--tools/lvcreate.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/lvcreate.c b/tools/lvcreate.c
index 70f237a6..165bf7c1 100644
--- a/tools/lvcreate.c
+++ b/tools/lvcreate.c
@@ -68,16 +68,16 @@ static int _lvcreate_name_params(struct lvcreate_params *lp,
if (lp->snapshot && !arg_count(cmd, virtualsize_ARG)) {
if (!argc) {
- log_err("Please specify a logical volume to act as "
- "the snapshot origin.");
+ log_error("Please specify a logical volume to act as "
+ "the snapshot origin.");
return 0;
}
lp->origin = argv[0];
(*pargv)++, (*pargc)--;
if (!(lp->vg_name = extract_vgname(cmd, lp->origin))) {
- log_err("The origin name should include the "
- "volume group.");
+ log_error("The origin name should include the "
+ "volume group.");
return 0;
}
@@ -92,7 +92,7 @@ static int _lvcreate_name_params(struct lvcreate_params *lp,
*/
if (!argc) {
if (!(lp->vg_name = extract_vgname(cmd, lp->lv_name))) {
- log_err("Please provide a volume group name");
+ log_error("Please provide a volume group name");
return 0;
}