All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH] lib/tst_safe_posix_ipc: Use %zu to format size_t
@ 2023-02-14  9:50 Richard Palethorpe via ltp
  2023-02-14 10:52 ` Cyril Hrubis
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Palethorpe via ltp @ 2023-02-14  9:50 UTC (permalink / raw)
  To: ltp; +Cc: Richard Palethorpe

Prevents compiler warning on 32bit

Signed-off-by: Richard Palethorpe <rpalethorpe@suse.com>
---
 include/tst_safe_posix_ipc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/tst_safe_posix_ipc.h b/include/tst_safe_posix_ipc.h
index 2d3d0928f..e7892f2af 100644
--- a/include/tst_safe_posix_ipc.h
+++ b/include/tst_safe_posix_ipc.h
@@ -121,7 +121,7 @@ static inline int safe_mq_send(const char *file, const int lineno,
 
 	if (rval == -1) {
 		tst_brk_(file, lineno, TBROK | TERRNO,
-			"mq_send(%d,%s,%lu,%d) failed", mqdes, msg_ptr,
+			"mq_send(%d,%s,%zu,%d) failed", mqdes, msg_ptr,
 			msg_len, msg_prio);
 	}
 
-- 
2.39.1


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

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

* Re: [LTP] [PATCH] lib/tst_safe_posix_ipc: Use %zu to format size_t
  2023-02-14  9:50 [LTP] [PATCH] lib/tst_safe_posix_ipc: Use %zu to format size_t Richard Palethorpe via ltp
@ 2023-02-14 10:52 ` Cyril Hrubis
  2023-02-14 21:53   ` Petr Vorel
  0 siblings, 1 reply; 3+ messages in thread
From: Cyril Hrubis @ 2023-02-14 10:52 UTC (permalink / raw)
  To: Richard Palethorpe; +Cc: ltp

Hi!
This would classify as obviously correct, so you could have just pushed
the patch and then send it as FYI to the list with [COMMITED] in the
subject.

Anyways:

Reviewed-by: Cyril Hrubis <chrubis@suse.cz>

> ---
>  include/tst_safe_posix_ipc.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/tst_safe_posix_ipc.h b/include/tst_safe_posix_ipc.h
> index 2d3d0928f..e7892f2af 100644
> --- a/include/tst_safe_posix_ipc.h
> +++ b/include/tst_safe_posix_ipc.h
> @@ -121,7 +121,7 @@ static inline int safe_mq_send(const char *file, const int lineno,
>  
>  	if (rval == -1) {
>  		tst_brk_(file, lineno, TBROK | TERRNO,
> -			"mq_send(%d,%s,%lu,%d) failed", mqdes, msg_ptr,
> +			"mq_send(%d,%s,%zu,%d) failed", mqdes, msg_ptr,
>  			msg_len, msg_prio);
>  	}
>  
> -- 
> 2.39.1
> 
> 
> -- 
> Mailing list info: https://lists.linux.it/listinfo/ltp

-- 
Cyril Hrubis
chrubis@suse.cz

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

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

* Re: [LTP] [PATCH] lib/tst_safe_posix_ipc: Use %zu to format size_t
  2023-02-14 10:52 ` Cyril Hrubis
@ 2023-02-14 21:53   ` Petr Vorel
  0 siblings, 0 replies; 3+ messages in thread
From: Petr Vorel @ 2023-02-14 21:53 UTC (permalink / raw)
  To: Cyril Hrubis; +Cc: Richard Palethorpe, ltp

Hi Richie, Cyril,

thanks, merged!

Kind regards,
Petr

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

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

end of thread, other threads:[~2023-02-14 21:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-14  9:50 [LTP] [PATCH] lib/tst_safe_posix_ipc: Use %zu to format size_t Richard Palethorpe via ltp
2023-02-14 10:52 ` Cyril Hrubis
2023-02-14 21:53   ` Petr Vorel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.