commit | 032e772f76a6cd0b4caf1af7bd02dd81af2dc7dd | [log] [tgz] |
---|---|---|
author | Alex Deymo <deymo@chromium.org> | Tue Mar 25 17:53:56 2014 -0700 |
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | Wed Mar 26 05:34:44 2014 +0000 |
tree | 73f75c03ae5c589e8bfe2781c4e4faa8b4701113 | |
parent | 04f2b380d4707a3903098a7459443c9509745943 [diff] |
Log the file format of cros_install on postinstall action This patch adds a new function to utils which determines the format of a file based on magic constants on the header and returns a human-readable description of it. This currently only supports ELF files and is used to log the file format of the cros_install binary on post-install. BUG=chromium:356187 TEST=Unittests. Change-Id: Ie6e91c3f5fa398c39894704db9071489560a8ff7 Reviewed-on: https://chromium-review.googlesource.com/191609 Tested-by: Alex Deymo <deymo@chromium.org> Reviewed-by: Don Garrett <dgarrett@chromium.org> Commit-Queue: Alex Deymo <deymo@chromium.org>