From patchwork Wed Feb 22 21:32:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benedikt Morbach X-Patchwork-Id: 9587483 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id EAD16600CA for ; Wed, 22 Feb 2017 21:34:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D29242864F for ; Wed, 22 Feb 2017 21:34:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C6C24286B7; Wed, 22 Feb 2017 21:34:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BED142864F for ; Wed, 22 Feb 2017 21:34:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933616AbdBVVdX (ORCPT ); Wed, 22 Feb 2017 16:33:23 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:33252 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933782AbdBVVcv (ORCPT ); Wed, 22 Feb 2017 16:32:51 -0500 Received: by mail-wm0-f66.google.com with SMTP id v77so2608313wmv.0 for ; Wed, 22 Feb 2017 13:32:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=if5PIckVSHtJ6nzQUoN2IVhBtFEEMhiZ3SAjTQAqmqY=; b=PAUuRNsayx1ul9i5ZKOi0hi04kkFexCkqL4ilK4Eh/ByUY4eXHl1wVEGBSkwavsk1o WiDjVsjpIj1+0hB2Gwjwfrxs7k5YJo++IqtAq0BGh6mg4zSQY1HJ/n5ojFbEZrBDe/9k wkfqlxSHuVCelsZDVb9UcdE1gmWbvlIxPcosPDnvigqhP9wmAxpwPQ2miK8xiwhouOOR o2sqK/+j5ARC8bfArOo79KT7z2SIv9DBGgPWuuGEh4KtgqQ9FbO1/Z8ZPtodkrike87+ WeRuX7B9jze5NI5ZSbTmsjCZ559XMwPHcUcU8ody2eGWIzXitVnhfTNqXb69/GyfinoA ieBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=if5PIckVSHtJ6nzQUoN2IVhBtFEEMhiZ3SAjTQAqmqY=; b=UTSxZ7fuQ7WQAm1FSyZZYFT/mD6dol74m2oaA7Y6XRYYpKTqCYzl2DQ2dflS8fbEmB f5th5+fd1hhR2VhCwCodt7phoLioN5xF+9EIXI7IwlIYIbFnzPm1VuHAa+C14Shocyvv evhlyRVzPAIEWYz7EcA/TWhOGWMBp9te9Fzxlov8TB2EZPFxQgoy6EMJbT0xR11r9KK4 WOU+B4Avfh4r6Hn5WQsk17bt8cvskNU+zGH7Y69nR5oJtH/mTkwkROcZMlBTJ5liYZ2D JLFYkk7Jhky3Ju8jl0/p4pzIA00OTnEHGtD7zLxsTaESj42Xl2bO4U2oOne2Z5QE6uyA tAwA== X-Gm-Message-State: AMke39lFc9a9mmhRYM1S2sIwLyH4REBlgeoDOiCgA5m9Fd48Mp70wsW87OSBhrC53X1BxQ== X-Received: by 10.28.213.193 with SMTP id m184mr464769wmg.28.1487799169693; Wed, 22 Feb 2017 13:32:49 -0800 (PST) Received: from detritus.atuin ([2a02:8071:2985:3e00::133]) by smtp.gmail.com with ESMTPSA id k142sm4053579wmg.31.2017.02.22.13.32.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 22 Feb 2017 13:32:49 -0800 (PST) From: Benedikt Morbach To: linux-btrfs@vger.kernel.org Cc: Benedikt Morbach Subject: [PATCH] btrfs-progs: send-dump: add missing newlines Date: Wed, 22 Feb 2017 22:32:46 +0100 Message-Id: <20170222213246.29315-1-benedikt.morbach@googlemail.com> X-Mailer: git-send-email 2.11.1 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP make sure to include newlines after commands that have only one argument, such as 'unlink' or 'mkfile' changes unlink ./baz.0/file_autimes ./baz.0/ atime=2017-02-22T11:59:16+0100 mtime=2017-02-22T11:59:16+0100 ctime=2017-02-22T11:59:16+0100 truncate ./baz.0/file_a size=131072 chmod ./baz.0/file_a mode=644 utimes ./baz.0/file_a atime=2017-02-22T11:59:16+0100 mtime=2017-02-22T11:59:16+0100 ctime=2017-02-22T11:59:16+0100 mkfile ./baz.0/o258-11-0rename ./baz.0/o258-11-0 dest=./baz.0/file_b utimes ./baz.0/ atime=2017-02-22T11:59:16+0100 mtime=2017-02-22T11:59:16+0100 ctime=2017-02-22T11:59:16+0100 to unlink ./baz.0/file_a utimes ./baz.0/ atime=2017-02-22T11:59:16+0100 mtime=2017-02-22T11:59:16+0100 ctime=2017-02-22T11:59:16+0100 truncate ./baz.0/file_a size=131072 chmod ./baz.0/file_a mode=644 utimes ./baz.0/file_a atime=2017-02-22T11:59:16+0100 mtime=2017-02-22T11:59:16+0100 ctime=2017-02-22T11:59:16+0100 mkfile ./baz.0/o258-11-0 rename ./baz.0/o258-11-0 dest=./baz.0/file_b utimes ./baz.0/ atime=2017-02-22T11:59:16+0100 mtime=2017-02-22T11:59:16+0100 ctime=2017-02-22T11:59:16+0100 Signed-off-by: Benedikt Morbach --- send-dump.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/send-dump.c b/send-dump.c index 4c44246..67f7977 100644 --- a/send-dump.c +++ b/send-dump.c @@ -112,8 +112,10 @@ static int __print_dump(int subvol, void *user, const char *path, /* Unified header */ printf("%-16s", title); ret = print_path_escaped(out_path); - if (!fmt) + if (!fmt) { + putchar('\n'); return 0; + } /* Short paths ale aligned to 32 chars */ while (ret++ < 32) putchar(' ');