From patchwork Tue Oct 11 22:38:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugene Syromyatnikov X-Patchwork-Id: 9372183 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 E13A1607FD for ; Wed, 12 Oct 2016 07:48:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D48C829CDF for ; Wed, 12 Oct 2016 07:48:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C97BC29CEF; Wed, 12 Oct 2016 07:48:18 +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=-3.6 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from mx6-phx2.redhat.com (mx6-phx2.redhat.com [209.132.183.39]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7B27529CDF for ; Wed, 12 Oct 2016 07:48:18 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx6-phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u9C7k35E028629; Wed, 12 Oct 2016 03:46:03 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id u9BMcm30009522 for ; Tue, 11 Oct 2016 18:38:48 -0400 Received: from mx1.redhat.com (ext-mx05.extmail.prod.ext.phx2.redhat.com [10.5.110.29]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u9BMcm83023716 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 11 Oct 2016 18:38:48 -0400 Received: from mail-lf0-f66.google.com (mail-lf0-f66.google.com [209.85.215.66]) (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 E457A31B332; Tue, 11 Oct 2016 22:38:46 +0000 (UTC) Received: by mail-lf0-f66.google.com with SMTP id b75so5434522lfg.3; Tue, 11 Oct 2016 15:38:46 -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=jasDQL35acyHfZoGCrU25V9HoEJHkreDj/rfgi+CZ7U=; b=g6F4FAFYkdsc7HpC5OV3YPLwGhNNUmJ2770DngcwrSBHeRB452cHOV9xyDtj+Nu0Ql rXcaljZYt/VcOjjByVAK9fuWMA4Zk5GXJAawqU8QJsCl58qraMCTaH5AngGhQAgXf/WS nwyNabrywrTwOhkRMqwgcR56KxMqAnZg/+2Y4AlML80hkqO/9n/CkwmWG3nhe6NlRnfi owIJCUJhTz1MKuAdgDESBJYglPkYqtuq1IjL6tCed/DbSH9hhW1bVlBoSBuClapagL0h Gj0RUOwmVtIDf9hvjFWb5f7JeY0Jq12wmYY/GIxtm7D+HHaJ/Kh8vdefJzgebcapCKXp R46g== 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=jasDQL35acyHfZoGCrU25V9HoEJHkreDj/rfgi+CZ7U=; b=AJDQFvqqwhuxRZhbhFL6i/hZF5uDrWuMo/qNLUrV6XX2C+cmnh/Lk3Cv1mWaWHvZlc T2YNdC7459t2hxCoQZIajfcCxeOhdObXi+YeoFwNa1ZH/hy08gPol4bPCprakR95e5Z3 YajlpE0/GlOfTWieWQ8rbp3bXFa2rf6YEwPKdtTuafug1fCW3PCuIl3IcypofMI+QamH r9v5c1YVBmfeTeJFV5w/sE3dziyLEbbncX6iJzZI7bRxPy9lF/0NCSqbj/wtKmIExVg6 JiXC3NzGPmGtO/QOW3iZ65ZDtwdzKHMnVux1sP5RepB+AhDGDZjkvOcxMRrEWD3EqcIs SfgQ== X-Gm-Message-State: AA6/9RmCCHJMZ/H+YpVoMIs4lo0dR+TRwu+lwrgCsRHjIRgspLvUogHH2XXgsfScI6t64w== X-Received: by 10.25.31.82 with SMTP id f79mr4992711lff.38.1476225525315; Tue, 11 Oct 2016 15:38:45 -0700 (PDT) Received: from obsidian (broadband-46-188-15-144.2com.net. [46.188.15.144]) by smtp.gmail.com with ESMTPSA id p3sm1535824lfe.1.2016.10.11.15.38.44 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Tue, 11 Oct 2016 15:38:44 -0700 (PDT) Date: Wed, 12 Oct 2016 01:38:42 +0300 From: Eugene Syromyatnikov To: strace-devel@lists.sourceforge.net Message-ID: <20161011223842.GA8831@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:38:47 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Tue, 11 Oct 2016 22:38:47 +0000 (UTC) for IP:'209.85.215.66' DOMAIN:'mail-lf0-f66.google.com' HELO:'mail-lf0-f66.google.com' FROM:'evgsyr@gmail.com' RCPT:'' X-RedHat-Spam-Score: 0.67 (BAYES_50, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_PASS) 209.85.215.66 mail-lf0-f66.google.com 209.85.215.66 mail-lf0-f66.google.com X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 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 5/9] dm: Fix comma printing for the case when dm_target_msg structure is inaccessible 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 --- dm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dm.c b/dm.c index d846233..b1d455c 100644 --- a/dm.c +++ b/dm.c @@ -342,10 +342,12 @@ dm_decode_dm_target_msg(struct tcb *tcp, unsigned long addr, offset + target_msg_message_offs <= ioc->data_size) { struct dm_target_msg s; + tprints(", "); + if (umove_or_printaddr(tcp, addr + offset, &s)) return; - tprintf(", {sector=%" PRI__u64 ", message=", s.sector); + tprintf("{sector=%" PRI__u64 ", message=", s.sector); printstr_ex(tcp, addr + offset + target_msg_message_offs, ioc->data_size - offset - target_msg_message_offs, QUOTE_0_TERMINATED);