public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH] util: Fix typo, ASSSERTION -> ASSERTION
@ 2025-04-30 15:01 Stefano Brivio
  2025-04-30 15:18 ` David Gibson
  0 siblings, 1 reply; 2+ messages in thread
From: Stefano Brivio @ 2025-04-30 15:01 UTC (permalink / raw)
  To: passt-dev

Fixes: 9153aca15bc1 ("util: Add abort_with_msg() and ASSERT_WITH_MSG() helpers")
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
---
 util.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/util.h b/util.h
index cc7d084..5947337 100644
--- a/util.h
+++ b/util.h
@@ -75,7 +75,7 @@ void abort_with_msg(const char *fmt, ...)
 #define ASSERT_WITH_MSG(expr, ...)					\
 	((expr) ? (void)0 : abort_with_msg(__VA_ARGS__))
 #define ASSERT(expr)							\
-	ASSERT_WITH_MSG((expr), "ASSSERTION FAILED in %s (%s:%d): %s",	\
+	ASSERT_WITH_MSG((expr), "ASSERTION FAILED in %s (%s:%d): %s",	\
 			__func__, __FILE__, __LINE__, STRINGIFY(expr))
 
 #ifdef P_tmpdir
-- 
@@ -75,7 +75,7 @@ void abort_with_msg(const char *fmt, ...)
 #define ASSERT_WITH_MSG(expr, ...)					\
 	((expr) ? (void)0 : abort_with_msg(__VA_ARGS__))
 #define ASSERT(expr)							\
-	ASSERT_WITH_MSG((expr), "ASSSERTION FAILED in %s (%s:%d): %s",	\
+	ASSERT_WITH_MSG((expr), "ASSERTION FAILED in %s (%s:%d): %s",	\
 			__func__, __FILE__, __LINE__, STRINGIFY(expr))
 
 #ifdef P_tmpdir
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] util: Fix typo, ASSSERTION -> ASSERTION
  2025-04-30 15:01 [PATCH] util: Fix typo, ASSSERTION -> ASSERTION Stefano Brivio
@ 2025-04-30 15:18 ` David Gibson
  0 siblings, 0 replies; 2+ messages in thread
From: David Gibson @ 2025-04-30 15:18 UTC (permalink / raw)
  To: Stefano Brivio; +Cc: passt-dev

[-- Attachment #1: Type: text/plain, Size: 1109 bytes --]

On Wed, Apr 30, 2025 at 05:01:37PM +0200, Stefano Brivio wrote:
> Fixes: 9153aca15bc1 ("util: Add abort_with_msg() and ASSERT_WITH_MSG() helpers")
> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>

Oops, that's embarrassing.  Or possible embarrasssing.

Reviewed-by: David Gibson <david@gibson.dropbear.id.au>

> ---
>  util.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/util.h b/util.h
> index cc7d084..5947337 100644
> --- a/util.h
> +++ b/util.h
> @@ -75,7 +75,7 @@ void abort_with_msg(const char *fmt, ...)
>  #define ASSERT_WITH_MSG(expr, ...)					\
>  	((expr) ? (void)0 : abort_with_msg(__VA_ARGS__))
>  #define ASSERT(expr)							\
> -	ASSERT_WITH_MSG((expr), "ASSSERTION FAILED in %s (%s:%d): %s",	\
> +	ASSERT_WITH_MSG((expr), "ASSERTION FAILED in %s (%s:%d): %s",	\
>  			__func__, __FILE__, __LINE__, STRINGIFY(expr))
>  
>  #ifdef P_tmpdir

-- 
David Gibson (he or they)	| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you, not the other way
				| around.
http://www.ozlabs.org/~dgibson

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-04-30 15:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-30 15:01 [PATCH] util: Fix typo, ASSSERTION -> ASSERTION Stefano Brivio
2025-04-30 15:18 ` David Gibson

Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).