diff options
author | Shawn Nematbakhsh <shawnn@chromium.org> | 2014-12-19 16:16:26 -0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-12-22 21:50:07 +0000 |
commit | 29a57a037abb86f11d3390dc8de0a5acf93f442f (patch) | |
tree | e7f2d70b94ec07263982965b65a345673aee8282 /include/system.h | |
parent | f993fe3c66fe55421a9dc6a87f582a7c826c3dab (diff) | |
download | chrome-ec-29a57a037abb86f11d3390dc8de0a5acf93f442f.tar.gz |
system: Add function to convert passed system_image_copy_t to string
This conversion is needed in files outside of system.c, so add a new
function.
BUG=chrome-os-partner:34599
TEST=Manual on samus_pd. Run "pd 0 info" and verify "Image RW" is
printed.
BRANCH=Samus
Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Change-Id: Ia905ba9cf985f3714fa75c81670b8a39e9608f3d
Reviewed-on: https://chromium-review.googlesource.com/236980
Tested-by: Shawn Nematbakhsh <shawnn@chromium.org>
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Commit-Queue: Shawn Nematbakhsh <shawnn@chromium.org>
Diffstat (limited to 'include/system.h')
-rw-r--r-- | include/system.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/system.h b/include/system.h index 4463c4baf9..71cad098f9 100644 --- a/include/system.h +++ b/include/system.h @@ -147,6 +147,11 @@ int system_unsafe_to_overwrite(uint32_t offset, uint32_t size); const char *system_get_image_copy_string(void); /** + * Return a text description of the passed image copy parameter. + */ +const char *system_image_copy_t_to_string(enum system_image_copy_t copy); + +/** * Return the number of bytes used in the specified image. * * This is the actual size of code+data in the image, as opposed to the |