From: Peter Feiner Subject: [kvm-unit-tests 1/5] lib: print failing assert cond Date: Tue, 1 Mar 2016 13:27:34 -0800 Message-ID: <1456867658-10937-2-git-send-email-pfeiner@google.com> References: <1456867658-10937-1-git-send-email-pfeiner@google.com> Cc: pfeiner@google.com To: kvm@vger.kernel.org, drjones@redhat.com, pbonzini@redhat.com Return-path: Received: from mail-pf0-f172.google.com ([209.85.192.172]:34483 "EHLO mail-pf0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751501AbcCAV1o (ORCPT ); Tue, 1 Mar 2016 16:27:44 -0500 Received: by mail-pf0-f172.google.com with SMTP id 4so41472239pfd.1 for ; Tue, 01 Mar 2016 13:27:43 -0800 (PST) In-Reply-To: <1456867658-10937-1-git-send-email-pfeiner@google.com> Sender: kvm-owner@vger.kernel.org List-ID: Signed-off-by: Peter Feiner --- lib/libcflat.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/libcflat.h b/lib/libcflat.h index 39100f2..1f0049c 100644 --- a/lib/libcflat.h +++ b/lib/libcflat.h @@ -74,7 +74,8 @@ extern int report_summary(void); #define assert(cond) \ do { \ if (!(cond)) \ - printf("%s:%d: assert failed\n", __FILE__, __LINE__), \ + printf("%s:%d: assert failed: %s\n", \ + __FILE__, __LINE__, #cond), \ abort(); \ } while (0) -- 2.7.0.rc3.207.g0ac5344