Received: from eggs.gnu.org ([2001:4830:134:3::10]:49216) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Za6Et-0002TW-8u for qemu-devel@nongnu.org; Thu, 10 Sep 2015 14:06:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Za6Eq-0003RG-3T for qemu-devel@nongnu.org; Thu, 10 Sep 2015 14:06:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50020) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Za6Ep-0003RC-Vb for qemu-devel@nongnu.org; Thu, 10 Sep 2015 14:06:24 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 95B118F2E6 for ; Thu, 10 Sep 2015 18:06:23 +0000 (UTC) From: Markus Armbruster References: <1441901956-21991-1-git-send-email-eblake@redhat.com> <1441902890-23064-1-git-send-email-eblake@redhat.com> Date: Thu, 10 Sep 2015 20:06:21 +0200 In-Reply-To: <1441902890-23064-1-git-send-email-eblake@redhat.com> (Eric Blake's message of "Thu, 10 Sep 2015 10:34:50 -0600") Message-ID: <87zj0u2lpe.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH 2/1] error: Copy location information in error_copy() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: qemu-devel@nongnu.org Eric Blake writes: > Commit 1e9b65bb forgot to propagate source information to copied > errors. > > Signed-off-by: Eric Blake > --- > > I noticed this while rebasing my patch (as in 'why did I not > get a merge conflict where I expected one?'); of course we > could apply this one first, but swapping the patch order implies > even more rebasing :) > > util/error.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/util/error.c b/util/error.c > index 9dd474f..b1eb8a2 100644 > --- a/util/error.c > +++ b/util/error.c > @@ -174,6 +174,9 @@ Error *error_copy(const Error *err) > err_new = g_malloc0(sizeof(*err)); > err_new->msg = g_strdup(err->msg); > err_new->err_class = err->err_class; > + err_new->src = err->src; > + err_new->line = err->line; > + err_new->func = err->func; > if (err->hint) { > err_new->hint = g_string_new(err->hint->str); > } Escaped review, but not for long :) I'll take this through my tree. Thanks!