Re: [Qemu-devel] [PATCH 8/9] Add end of test message

2017-04-25 Thread Peter Maydell
On 25 April 2017 at 04:24, G 3  wrote:
> Print the message "End of test" on the risu host end.
>
> Signed-off-by: John Arbuckle 
> ---
>  risu.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/risu.c b/risu.c
> index ed5b605..e7cbd57 100644
> --- a/risu.c
> +++ b/risu.c
> @@ -63,6 +63,7 @@ void apprentice_sigill(int sig, siginfo_t *si, void *uc)
>   return;
>case 1:
>   /* end of test */
> + printf("End of test\n");
>   exit(0);
>default:
>   /* mismatch */

This code is a signal handler, you can't use printf() here.

thanks
-- PMM



[Qemu-devel] [PATCH 8/9] Add end of test message

2017-04-24 Thread G 3

Print the message "End of test" on the risu host end.

Signed-off-by: John Arbuckle 
---
 risu.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/risu.c b/risu.c
index ed5b605..e7cbd57 100644
--- a/risu.c
+++ b/risu.c
@@ -63,6 +63,7 @@ void apprentice_sigill(int sig, siginfo_t *si, void  
*uc)

  return;
   case 1:
  /* end of test */
+ printf("End of test\n");
  exit(0);
   default:
  /* mismatch */
--
2.10.2