You need to sign in or sign up before continuing.
  • E
    maint: print flags in hex during debug · 06dbfa6d
    Eric Blake 提交于
    Continuation of commit 313ac7fd, and enforce things with a syntax
    check.
    
    Technically, virNetServerClientCalculateHandleMode is not printing
    a mode_t, but rather a collection of VIR_EVENT_HANDLE_* bits;
    however, these bits are < 8, so there is no different in the
    output, and that was the easiest way to silence the new syntax check.
    
    * cfg.mk (sc_flags_debug): New syntax check.
    (exclude_file_name_regexp--sc_flags_debug): Add exemptions.
    * src/fdstream.c (virFDStreamOpenFileInternal): Print flags in
    hex, mode_t in octal.
    * src/libvirt-qemu.c (virDomainQemuMonitorCommand)
    (virDomainQemuAttach): Likewise.
    * src/locking/lock_driver_nop.c (virLockManagerNopInit): Likewise.
    * src/locking/lock_driver_sanlock.c (virLockManagerSanlockInit):
    Likewise.
    * src/locking/lock_manager.c: Likewise.
    * src/qemu/qemu_migration.c: Likewise.
    * src/qemu/qemu_monitor.c: Likewise.
    * src/rpc/virnetserverclient.c
    (virNetServerClientCalculateHandleMode): Print mode with %o.
    06dbfa6d
cfg.mk 24.1 KB