From patchwork Tue Oct 11 22:39:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugene Syromyatnikov X-Patchwork-Id: 9372187 X-Patchwork-Delegate: snitzer@redhat.com 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 4AE05607FD for ; Wed, 12 Oct 2016 07:48:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3DF1329CDF for ; Wed, 12 Oct 2016 07:48:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 32E6929CEC; Wed, 12 Oct 2016 07:48:25 +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 mx3-phx2.redhat.com (mx3-phx2.redhat.com [209.132.183.24]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9ACDA29CEF for ; Wed, 12 Oct 2016 07:48:24 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx3-phx2.redhat.com (8.13.8/8.13.8) with ESMTP id u9C7kBoF014075; Wed, 12 Oct 2016 03:46:12 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id u9BMd7AJ009532 for ; Tue, 11 Oct 2016 18:39:07 -0400 Received: from mx1.redhat.com (ext-mx05.extmail.prod.ext.phx2.redhat.com [10.5.110.29]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u9BMd7j6032501 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 11 Oct 2016 18:39:07 -0400 Received: from mail-lf0-f68.google.com (mail-lf0-f68.google.com [209.85.215.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3636A37E71; Tue, 11 Oct 2016 22:39:06 +0000 (UTC) Received: by mail-lf0-f68.google.com with SMTP id x79so5523171lff.2; Tue, 11 Oct 2016 15:39:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Eq3MtIG5V2sV9wiYZmmqM92OOPn/8jMSYg4g+6ha4/E=; b=qyrhSk09kvxsLKQUxzgd8kwMPMsJO9ys+0ESFlfexsDATT9Ma1O2uCLCcJ8r7vwItx PVegvUmk5xG/apET0fTg9agjqtVKJoPsQGoy5X2FMy76RzkmsXV0lFp5KfcWMcimgsCa NQB7imPeutpkqex+O0YtwOGpDBHh8di+vytMTkzSCtqRlqOwuKbTj/es4Q+X3frXHDW9 aaWxcq+kEWsFc3jMMbmsPxuk26kyjz/sluCo4Dvvhgodtpcg2La5Y4cWtQUlZbP5lHGZ 6bYa34yq7VEFZ7ZSUektMu/YWBECEHa/iw9x61+mnMdP+SInsG6b0DV6/K/Ut3P0O7lc GIqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Eq3MtIG5V2sV9wiYZmmqM92OOPn/8jMSYg4g+6ha4/E=; b=E0WR5+TtZ05pAs3odHfz1255xMOKPEQl7+oLdU4lFhycOeJ7YLQgs6vFDhOn+nYlyu Uv7XKbaz59n/6gJxt2SULLcCpGpBHpJrrlw0oZmpWEZ71Y0NKKUgi92WIS3ye5Zg9CCd 3BnzWt2RU176sWZ10NWd2lo7l1gjDnNxV9g92t/L3TSieMsBLva9I50TsIE1OKrwKZvM AikYPPiSlCXodhnbeoZjDzQKwPb7WapJJdYdkHdbPbZfXjaacSp4c4fpiOz+hCOOBuGJ aA1O2yVtS2HWAcPKp+UOXrMnDUo442wbur5iCkbdVs6KrxUESVoDrYtnznQyzkchsuc+ FXuA== X-Gm-Message-State: AA6/9Rk3ASPZ+jtoHkvcRGEO1GzbcTgBh07oArlJ/iTqhYbb1kai7RjoqsIQnny1ninccg== X-Received: by 10.25.125.4 with SMTP id y4mr4424359lfc.75.1476225544590; Tue, 11 Oct 2016 15:39:04 -0700 (PDT) Received: from obsidian (broadband-46-188-15-144.2com.net. [46.188.15.144]) by smtp.gmail.com with ESMTPSA id f65sm1551534lji.19.2016.10.11.15.39.03 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Tue, 11 Oct 2016 15:39:04 -0700 (PDT) Date: Wed, 12 Oct 2016 01:39:02 +0300 From: Eugene Syromyatnikov To: strace-devel@lists.sourceforge.net Message-ID: <20161011223902.GA8975@obsidian> References: <20161005.192828.566127461630656590.yamato@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20161005.192828.566127461630656590.yamato@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Tue, 11 Oct 2016 22:39:06 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Tue, 11 Oct 2016 22:39:06 +0000 (UTC) for IP:'209.85.215.68' DOMAIN:'mail-lf0-f68.google.com' HELO:'mail-lf0-f68.google.com' FROM:'evgsyr@gmail.com' RCPT:'' X-RedHat-Spam-Score: 1.18 * (BAYES_50, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_SPAM, SPF_PASS) 209.85.215.68 mail-lf0-f68.google.com 209.85.215.68 mail-lf0-f68.google.com X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 X-Scanned-By: MIMEDefang 2.78 on 10.5.110.29 X-loop: dm-devel@redhat.com X-Mailman-Approved-At: Wed, 12 Oct 2016 03:45:31 -0400 Cc: dm-devel@redhat.com, mpatocka@redhat.com, yamato@redhat.com Subject: [dm-devel] [PATCH 6/9] tests/ioctl_dm: overly long string printing checks X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Virus-Scanned: ClamAV using ClamSMTP --- tests/ioctl_dm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/ioctl_dm.c b/tests/ioctl_dm.c index 261983c..24232b7 100644 --- a/tests/ioctl_dm.c +++ b/tests/ioctl_dm.c @@ -67,12 +67,12 @@ main(void) init_s(&s.ioc, sizeof(s), offsetof(struct s, u)); s.u.tm.target_msg.sector = 0x1234; strcpy(s.u.string + offsetof(struct dm_target_msg, message), - "tmsg"); + "long target msg"); ioctl(-1, DM_TARGET_MSG, &s); printf("ioctl(-1, DM_TARGET_MSG, " "{version=4.1.2, data_size=%u, data_start=%u, " "dev=makedev(18, 52), name=\"nnn\", uuid=\"uuu\", flags=0, " - "{sector=4660, message=\"tmsg\"}}) = -1 EBADF (%m)\n", + "{sector=4660, message=\"long targ\"...}}) = -1 EBADF (%m)\n", s.ioc.data_size, s.ioc.data_start); init_s(&s.ioc, sizeof(s), offsetof(struct s, u)); @@ -85,12 +85,12 @@ main(void) s.ioc.data_size, s.ioc.data_start); init_s(&s.ioc, sizeof(s), offsetof(struct s, u)); - strcpy(s.u.string, "new-name"); + strcpy(s.u.string, "new long name"); ioctl(-1, DM_DEV_RENAME, &s); printf("ioctl(-1, DM_DEV_RENAME, " "{version=4.1.2, data_size=%u, data_start=%u, " "dev=makedev(18, 52), name=\"nnn\", uuid=\"uuu\", event_nr=0, " - "flags=0, string=\"new-name\"}) = -1 EBADF (%m)\n", + "flags=0, string=\"new long \"...}) = -1 EBADF (%m)\n", s.ioc.data_size, s.ioc.data_start); init_s(&s.ioc, sizeof(s), offsetof(struct s, u));