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

Bug: 803617,644525
Change-Id: I627754976ff04e334010d36e5734d73421523e47
Commit-Queue: Bruce Dawson <>
Reviewed-by: Dirk Pranke <>
Cr-Original-Commit-Position: refs/heads/master@{#536899}
Cr-Mirrored-Commit: 8c50b3ed049c736406943ac24dc40fc8ac1e782c
1 file changed
tree: f119fe2c5524b2aee414bf36321f354e1443ad3e