• E
    snapshot: simplify indentation of cpu features · 4eedfd07
    Eric Blake 提交于
    Auto-indent makes life a bit easier; this patch also drops unused
    arguments and replaces a misspelled flag name with two entry points
    instead, so that callers don't have to worry about how much spacing
    is present when embedding cpu elements.
    
    * src/conf/cpu_conf.h (virCPUFormatFlags): Delete.
    (virCPUDefFormat): Drop unused argument.
    (virCPUDefFormatBuf): Alter signature.
    (virCPUDefFormatBufFull): New prototype.
    * src/conf/cpu_conf.c (virCPUDefFormatBuf): Split...
    (virCPUDefFormatBufFull): ...into new function.
    (virCPUDefFormat): Adjust caller.
    * src/conf/domain_conf.c (virDomainDefFormatInternal): Likewise.
    * src/conf/capabilities.c (virCapabilitiesFormatXML): Likewise.
    * src/cpu/cpu.c (cpuBaselineXML): Likewise.
    * tests/cputest.c (cpuTestCompareXML): Likewise.
    4eedfd07
cpu_conf.c 15.5 KB