util: Standardize console output in the m5 writefile command.
authorGabe Black <gabeblack@google.com>
Wed, 8 Apr 2020 09:28:29 +0000 (02:28 -0700)
committerGabe Black <gabeblack@google.com>
Mon, 27 Jul 2020 08:29:51 +0000 (08:29 +0000)
commitcef72adabc48328bf8e43baf3792cf0a2a18a8a5
tree60d9b7a19b2e341616283849b28618109a46681c
parentdeb48638eac79ca3d4f1f11ba7b8de8fd5fdf848
util: Standardize console output in the m5 writefile command.

When the command reports an error, it should then exit(2) and not just
return as if everything worked. When printing the number of bytes
written or the file being opened, it should write this non-error message
to cout, and not cerr.

Also used proper capitalization and punctuation in a couple messages.

Change-Id: I2c0d6592357965ed2eee8f090c8b3d530b354b9f
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/27627
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Reviewed-by: Pouya Fotouhi <pfotouhi@ucdavis.edu>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
util/m5/src/command/writefile.cc