1. 08 7月, 2016 2 次提交
  2. 04 7月, 2016 1 次提交
  3. 29 6月, 2016 3 次提交
  4. 27 6月, 2016 1 次提交
  5. 20 6月, 2016 4 次提交
    • M
      log: Fix qemu_set_log_filename() error handling · daa76aa4
      Markus Armbruster 提交于
      When qemu_set_log_filename() detects an invalid file name, it reports
      an error, closes the log file (if any), and starts logging to stderr
      (unless daemonized or nothing is being logged).
      
      This is wrong.  Asking for an invalid log file on the command line
      should be fatal.  Asking for one in the monitor should fail without
      messing up an existing logfile.
      
      Fix by converting qemu_set_log_filename() to Error.  Pass it
      &error_fatal, except for hmp_logfile report errors.
      
      This also permits testing without a subprocess, so do that.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Message-Id: <1466011636-6112-4-git-send-email-armbru@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      daa76aa4
    • M
      log: Fix qemu_set_dfilter_ranges() error reporting · bd6fee9f
      Markus Armbruster 提交于
      g_error() is not an acceptable way to report errors to the user:
      
          $ qemu-system-x86_64 -dfilter 1000+0
      
          ** (process:17187): ERROR **: Failed to parse range in: 1000+0
          Trace/breakpoint trap (core dumped)
      
      g_assert() isn't, either:
      
          $ qemu-system-x86_64 -dfilter 1000x+64
          **
          ERROR:/work/armbru/qemu/util/log.c:180:qemu_set_dfilter_ranges: assertion failed: (e == range_op)
          Aborted (core dumped)
      
      Convert qemu_set_dfilter_ranges() to Error.  Rework its deeply nested
      control flow.  Touch up the error messages.  Call it with
      &error_fatal.
      
      This also permits testing without a subprocess, so do that.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Message-Id: <1466011636-6112-3-git-send-email-armbru@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      bd6fee9f
    • E
      coccinelle: Remove unnecessary variables for function return value · 9be38598
      Eduardo Habkost 提交于
      Use Coccinelle script to replace 'ret = E; return ret' with
      'return E'. The script will do the substitution only when the
      function return type and variable type are the same.
      
      Manual fixups:
      
      * audio/audio.c: coding style of "read (...)" and "write (...)"
      * block/qcow2-cluster.c: wrap line to make it shorter
      * block/qcow2-refcount.c: change indentation of wrapped line
      * target-tricore/op_helper.c: fix coding style of
        "remainder|quotient"
      * target-mips/dsp_helper.c: reverted changes because I don't
        want to argue about checkpatch.pl
      * ui/qemu-pixman.c: fix line indentation
      * block/rbd.c: restore blank line between declarations and
        statements
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      Message-Id: <1465855078-19435-4-git-send-email-ehabkost@redhat.com>
      Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
      [Unused Coccinelle rule name dropped along with a redundant comment;
      whitespace touched up in block/qcow2-cluster.c; stale commit message
      paragraph deleted]
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      9be38598
    • M
      vl: Error messages need to go to stderr, fix some · da002526
      Markus Armbruster 提交于
      We print a few fatal error messages to stdout instead of stderr.
      Reproducer:
      
          $ qemu-system-x86_64 -g 1024x768
          Option g not supported for this target
          $ qemu-system-x86_64 -g 1024x768 >/dev/null
      
      Fix by printing them with error_report().  This also improves the messages.
      The above one becomes
      
          qemu-system-x86_64: -g 1024x768: Option not supported for this target
      
      Reported-by: Tobi {github.com/tobimensch}
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Message-Id: <1464683498-28779-1-git-send-email-armbru@redhat.com>
      Reviewed-by: NMarcel Apfelbaum <marcel@redhat.com>
      da002526
  6. 17 6月, 2016 3 次提交
  7. 13 6月, 2016 1 次提交
  8. 07 6月, 2016 2 次提交
  9. 01 6月, 2016 1 次提交
  10. 24 5月, 2016 1 次提交
  11. 23 5月, 2016 1 次提交
  12. 21 5月, 2016 18 次提交
  13. 19 5月, 2016 2 次提交