]> sourceware.org Git - lvm2.git/commitdiff
Use return_0 in a couple more places.
authorAlasdair Kergon <agk@redhat.com>
Mon, 10 Mar 2008 18:51:27 +0000 (18:51 +0000)
committerAlasdair Kergon <agk@redhat.com>
Mon, 10 Mar 2008 18:51:27 +0000 (18:51 +0000)
Correct a function name typo in _line_append error message.

WHATS_NEW
lib/config/config.c
lib/format_text/text_export.h

index 1ee409f4a8d007346073a84aadf9bf49c3fff601..52e99838e1c11f9771abb0c3aa115d672807dea5 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,7 @@
 Version 2.02.34 -
 ===================================
+  Use return_0 in a couple more places.
+  Correct a function name typo in _line_append error message.
   Include limits.h in clvmd so it compiles with newer headers.
   Add VirtIO disks (vd) to filters.
   Fix resetting of MIRROR_IMAGE and VISIBLE_LV after removal of LV. (2.02.30)
index c3b5f9c5cfcbed4197f2ce1590943a88859f3a9f..64542686f14dd8e445fede4f638ea941b572b233 100644 (file)
@@ -372,7 +372,7 @@ static int _line_append(struct output_line *outline, const char *fmt, ...)
        va_end(ap);
 
        if (!dm_pool_grow_object(outline->mem, &buf[0], strlen(buf))) {
-               log_error("dm_pool_grew_object failed for config line");
+               log_error("dm_pool_grow_object failed for config line");
                return 0;
        }
 
index a0a9612020a430f55d3941271d24b7a9d6f0a633..2f2b53156ffcdb9cff9865f62371c26219520e2b 100644 (file)
@@ -16,8 +16,8 @@
 #ifndef _LVM_TEXT_EXPORT_H
 #define _LVM_TEXT_EXPORT_H
 
-#define outf(args...) do {if (!out_text(args)) {stack; return 0;}} while (0)
-#define outnl(f) do {if (!f->nl(f)) {stack; return 0;}} while (0)
+#define outf(args...) do {if (!out_text(args)) return_0;} while (0)
+#define outnl(f) do {if (!f->nl(f)) return_0;} while (0)
 
 struct formatter;
 struct lv_segment;
This page took 0.050764 seconds and 5 git commands to generate.