json-parser: Output the content of invalid keyword
authorAmos Kong <akong@redhat.com>
Wed, 24 Mar 2010 15:12:05 +0000 (23:12 +0800)
committerAurelien Jarno <aurelien@aurel32.net>
Sat, 27 Mar 2010 12:51:01 +0000 (13:51 +0100)
commitcbed60b6a4884bc7cbf2243458dfbc3970840386
tree3c98d06e4c915eb68b6e0ede2bb4010ae7631ce3
parenta639bafb9e5913e94d2940d4c98b24916387a239
json-parser: Output the content of invalid keyword

When input some invalid word 'unknowcmd' through QMP port, qemu outputs
this error message:
  "parse error: invalid keyword `%s'"

This patch makes qemu output the content of invalid keyword, like:

  "parse error: invalid keyword `unknowcmd'"

Signed-off-by: Amos Kong <akong@redhat.com>
Acked-by: Richard Henderson <rth@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
json-parser.c