diff mbox series

[ptest-runner,2/2] utils.c: print a message when a timeout occurs

Message ID 20260302174500.357368-2-yoann.congal@smile.fr
State New
Headers show
Series [ptest-runner,1/2] ptest-runner-collect-system-data: add info to logs | expand

Commit Message

Yoann Congal March 2, 2026, 5:45 p.m. UTC
From: Yoann Congal <yoann.congal@smile.fr>

This will make a timeout occuring more clear in the logs.

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
---
 utils.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Anibal Limon March 4, 2026, 3:41 p.m. UTC | #1
Applied, thanks!

On Mon, Mar 2, 2026 at 11:45 AM Yoann Congal <yoann.congal@smile.fr> wrote:

> From: Yoann Congal <yoann.congal@smile.fr>
>
> This will make a timeout occuring more clear in the logs.
>
> Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
> ---
>  utils.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/utils.c b/utils.c
> index 6cf7705..6cfa26f 100644
> --- a/utils.c
> +++ b/utils.c
> @@ -498,6 +498,7 @@ run_ptests(struct ptest_list *head, const struct
> ptest_options opts,
>                                 }
>
>                                 if (timedout) {
> +                                       fprintf(fp, "Timeout! System
> state:\n");
>                                         collect_system_state(fp);
>                                 } else {
>                                         /*
>
diff mbox series

Patch

diff --git a/utils.c b/utils.c
index 6cf7705..6cfa26f 100644
--- a/utils.c
+++ b/utils.c
@@ -498,6 +498,7 @@  run_ptests(struct ptest_list *head, const struct ptest_options opts,
 				}
 
 				if (timedout) {
+					fprintf(fp, "Timeout! System state:\n");
 					collect_system_state(fp);
 				} else {
 					/*