xfs
[Top] [All Lists]

[PATCH] libxfs: report VERSION in libxfs_fs_repair_cmn_err()

To: xfs-oss <xfs@xxxxxxxxxxx>
Subject: [PATCH] libxfs: report VERSION in libxfs_fs_repair_cmn_err()
From: Eric Sandeen <sandeen@xxxxxxxxxxx>
Date: Fri, 30 Jan 2015 00:28:23 -0600
Delivered-to: xfs@xxxxxxxxxxx
Because this is usually the first question asked...

Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxxx>
---

diff --git a/libxfs/util.c b/libxfs/util.c
index 9504e33..6464a1b 100644
--- a/libxfs/util.c
+++ b/libxfs/util.c
@@ -718,6 +718,7 @@ libxfs_fs_repair_cmn_err(int level, xfs_mount_t *mp, char 
*fmt, ...)
        va_start(ap, fmt);
        vfprintf(stderr, fmt, ap);
        fprintf(stderr, "  This is a bug.\n");
+       fprintf(stderr, "%s version %s\n", progname, VERSION);
        fprintf(stderr, "Please capture the filesystem metadata with "
                        "xfs_metadump and\nreport it to xfs@xxxxxxxxxxxx\n");
        va_end(ap);

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] libxfs: report VERSION in libxfs_fs_repair_cmn_err(), Eric Sandeen <=