Re: [Qemu-devel] [PATCH v5 5/7] blkdebug: Simplify override logic

2017-02-15 Thread Kevin Wolf
Am 14.02.2017 um 20:25 hat Eric Blake geschrieben: > Rather than store into a local variable, then copy to the struct > if the value is valid, then reporting errors otherwise, it is > simpler to just store into the struct and report errors if the > value is invalid. This however requires that the

[Qemu-devel] [PATCH v5 5/7] blkdebug: Simplify override logic

2017-02-14 Thread Eric Blake
Rather than store into a local variable, then copy to the struct if the value is valid, then reporting errors otherwise, it is simpler to just store into the struct and report errors if the value is invalid. This however requires that the struct store a 64-bit number, rather than a narrower type.