Re: [kvm-unit-tests PATCH 22/32] lib: add newline to assert_msg

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Apr 20, 2017 at 05:49:54PM -0700, David Matlack wrote:
> From: Peter Feiner <pfeiner@xxxxxxxxxx>
> 
> Signed-off-by: Peter Feiner <pfeiner@xxxxxxxxxx>
> Signed-off-by: David Matlack <dmatlack@xxxxxxxxxx>
> ---
>  lib/libcflat.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/libcflat.h b/lib/libcflat.h
> index 05c18543dd72..7e4bce1dd335 100644
> --- a/lib/libcflat.h
> +++ b/lib/libcflat.h
> @@ -130,7 +130,7 @@ do {									\
>  #define assert_msg(cond, fmt, args...)					\
>  do {									\
>  	if (!(cond)) {							\
> -		printf("%s:%d: assert failed: %s: " fmt,		\
> +		printf("%s:%d: assert failed: %s: " fmt "\n",		\
>  		       __FILE__, __LINE__, #cond, ## args);		\
>  		dump_stack();						\
>  		abort();						\
> -- 
> 2.12.2.816.g2cccc81164-goog
>

Should be squashed in with the introduction of assert_msg 

Thanks,
drew



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux