From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54464) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9q3m-0003iw-Oy for qemu-devel@nongnu.org; Mon, 06 Jun 2016 04:38:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b9q3i-0001Xd-FA for qemu-devel@nongnu.org; Mon, 06 Jun 2016 04:38:58 -0400 Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]:34920) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9q3i-0001XX-7t for qemu-devel@nongnu.org; Mon, 06 Jun 2016 04:38:54 -0400 Received: by mail-wm0-x235.google.com with SMTP id c74so34298478wme.0 for ; Mon, 06 Jun 2016 01:38:54 -0700 (PDT) Sender: Paolo Bonzini References: From: Paolo Bonzini Message-ID: <9f545c67-b14a-edc4-db61-6fbcbff0a066@redhat.com> Date: Mon, 6 Jun 2016 10:38:49 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PULL 10/28] migration: add reporting of errors for outgoing migration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Amit Shah , Peter Maydell Cc: qemu list , "Dr. David Alan Gilbert" , Juan Quintela On 26/05/2016 08:12, Amit Shah wrote: > @@ -863,12 +867,15 @@ static void migrate_fd_cleanup(void *opaque) > notifier_list_notify(&migration_state_notifiers, s); > } > > -void migrate_fd_error(MigrationState *s) > +void migrate_fd_error(MigrationState *s, const Error *error) > { > - trace_migrate_fd_error(); > + trace_migrate_fd_error(error ? error_get_pretty(error) : ""); This check on error == NULL is unnecessary, the only caller passes a non-NULL error. Paolo