Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(293)

Unified Diff: host/lib/crossystem.c

Issue 6698032: Add VB test error func/num (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git@master
Patch Set: ready for code review Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « firmware/lib/vboot_nvstorage.c ('k') | tests/vboot_nvstorage_test.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: host/lib/crossystem.c
diff --git a/host/lib/crossystem.c b/host/lib/crossystem.c
index 9bea492a3ec49de26652db0a8ff6437a2d68bfd6..b43c502d23437b2e2fd9d9a43ae5f0d964985c7d 100644
--- a/host/lib/crossystem.c
+++ b/host/lib/crossystem.c
@@ -644,6 +644,10 @@ int VbGetSystemPropertyInt(const char* name) {
value = VbGetNvStorage(VBNV_KERNEL_FIELD);
} else if (!strcasecmp(name,"nvram_cleared")) {
value = VbGetNvStorage(VBNV_KERNEL_SETTINGS_RESET);
+ } else if (!strcasecmp(name,"vbtest_errfunc")) {
+ value = VbGetNvStorage(VBNV_TEST_ERROR_FUNC);
+ } else if (!strcasecmp(name,"vbtest_errno")) {
+ value = VbGetNvStorage(VBNV_TEST_ERROR_NUM);
}
/* NV storage values. If unable to get from NV storage, fall back to the
* CMOS reboot field used by older BIOS. */
@@ -759,6 +763,10 @@ int VbSetSystemPropertyInt(const char* name, int value) {
return VbSetNvStorage(VBNV_KERNEL_SETTINGS_RESET, 0);
} else if (!strcasecmp(name,"kern_nv")) {
return VbSetNvStorage(VBNV_KERNEL_FIELD, value);
+ } else if (!strcasecmp(name,"vbtest_errfunc")) {
+ return VbSetNvStorage(VBNV_TEST_ERROR_FUNC, value);
+ } else if (!strcasecmp(name,"vbtest_errno")) {
+ return VbSetNvStorage(VBNV_TEST_ERROR_NUM, value);
}
/* NV storage values. If unable to get from NV storage, fall back to the
* CMOS reboot field used by older BIOS. */
« no previous file with comments | « firmware/lib/vboot_nvstorage.c ('k') | tests/vboot_nvstorage_test.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698