Print Windows crash codes in hex
Failure codes such as STATUS_ACCESS_VIOLATION are easily recognizable
and easily differentiated when printed in hex (0xC0000005) but are
cryptic and conflated when printed as decimal (-1073741819). This change
teaches two of our wrapper scripts to print large negative numbers as
hex so that those skilled in the Windows arts can automatically say
"access violation" or "not access violation."
I also removed an inelegant trailing period, for consistency.
In testing with artificially inserted error codes the output is:
Protoc has returned non-zero status: -99
Protoc has returned non-zero status: 0xC0000005
genperf.exe failed with exit code -99
re2c.exe failed with exit code 0xC0000005
Commit-Queue: Bruce Dawson <email@example.com>
Reviewed-by: Dirk Pranke <firstname.lastname@example.org>
1 file changed