diff mbox

[v5,6/7] replay: fix error message

Message ID 20160314074504.4980.29461.stgit@PASHA-ISP (mailing list archive)
State New, archived
Headers show

Commit Message

Pavel Dovgalyuk March 14, 2016, 7:45 a.m. UTC
This patch fixes error message in saving loop of the asynchronous events queue.

Signed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
---
 replay/replay-events.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Kevin Wolf March 24, 2016, 11:56 a.m. UTC | #1
Am 14.03.2016 um 08:45 hat Pavel Dovgalyuk geschrieben:
> This patch fixes error message in saving loop of the asynchronous events queue.
> 
> Signed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
> ---
>  replay/replay-events.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/replay/replay-events.c b/replay/replay-events.c
> index 4aa8034..b6b8a64 100644
> --- a/replay/replay-events.c
> +++ b/replay/replay-events.c
> @@ -175,7 +175,7 @@ static void replay_save_event(Event *event, int checkpoint)
>              replay_event_char_read_save(event->opaque);
>              break;
>          default:
> -            error_report("Unknown ID %d of replay event", read_event_kind);
> +            error_report("Unknown ID %d of replay event", event->id);

replay/replay-events.c: In function 'replay_save_event':
replay/replay-events.c:178:13: error: format '%d' expects argument of type 'int', but argument 2 has type 'uint64_t' [-Werror=format=]

Fixing this into %" PRId64 ".

Kevin

>              exit(1);
>          }
>      }
>
diff mbox

Patch

diff --git a/replay/replay-events.c b/replay/replay-events.c
index 4aa8034..b6b8a64 100644
--- a/replay/replay-events.c
+++ b/replay/replay-events.c
@@ -175,7 +175,7 @@  static void replay_save_event(Event *event, int checkpoint)
             replay_event_char_read_save(event->opaque);
             break;
         default:
-            error_report("Unknown ID %d of replay event", read_event_kind);
+            error_report("Unknown ID %d of replay event", event->id);
             exit(1);
         }
     }