xfs: remove extra newlines from xfs messages
authorEric Sandeen <sandeen@redhat.com>
Tue, 23 Dec 2014 22:47:27 +0000 (09:47 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 23 Dec 2014 22:47:27 +0000 (09:47 +1100)
xfs_warn() and friends add a newline by default, but some
messages add another one.

Particularly for the failing write message below, this can
waste a lot of console real estate!

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_buf_item.c
fs/xfs/xfs_log.c
fs/xfs/xfs_super.c

index 3f9bd58edec74eacf8273eaa72dbd64a1a24de14..925ead22803a1dba76b18285524ef4a9925a1a46 100644 (file)
@@ -535,7 +535,7 @@ xfs_buf_item_push(
        if ((bp->b_flags & XBF_WRITE_FAIL) &&
            ___ratelimit(&xfs_buf_write_fail_rl_state, "XFS:")) {
                xfs_warn(bp->b_target->bt_mount,
-"Detected failing async write on buffer block 0x%llx. Retrying async write.\n",
+"Detected failing async write on buffer block 0x%llx. Retrying async write.",
                         (long long)bp->b_bn);
        }
 
index 4f09e0f7c07a11fb3620edd68e34a171802ccf7d..8fbbfb2d46e1b78e33ccb95147a534a9fe1cd629 100644 (file)
@@ -2027,7 +2027,7 @@ xlog_print_tic_res(
                "  total reg   = %u bytes (o/flow = %u bytes)\n"
                "  ophdrs      = %u (ophdr space = %u bytes)\n"
                "  ophdr + reg = %u bytes\n"
-               "  num regions = %u\n",
+               "  num regions = %u",
                ((ticket->t_trans_type <= 0 ||
                  ticket->t_trans_type > XFS_TRANS_TYPE_MAX) ?
                  "bad-trans-type" : trans_type_str[ticket->t_trans_type-1]),
index 19cbda196369021cf48fb1f7cab29b866d4ba16c..22e6acaa0320b182aa0cd10128815f89b4ca429c 100644 (file)
@@ -685,7 +685,7 @@ xfs_blkdev_get(
                                    mp);
        if (IS_ERR(*bdevp)) {
                error = PTR_ERR(*bdevp);
-               xfs_warn(mp, "Invalid device [%s], error=%d\n", name, error);
+               xfs_warn(mp, "Invalid device [%s], error=%d", name, error);
        }
 
        return error;