Use TEMP_FAILURE_RETRY, always build bootchart.cpp.
Also switch the revision parsing over to sscanf as promised. I haven't
done the hardware parsing because I don't yet know whether we actually need
to keep the space-stripping code.
Change-Id: Ic33378345cd515cb08d00c543acf44eb72673396
diff --git a/init/util.cpp b/init/util.cpp
index c484168..84fe536 100644
--- a/init/util.cpp
+++ b/init/util.cpp
@@ -431,10 +431,7 @@
hardware[n] = 0;
}
} else if (strncmp(buf, "Revision", 8) == 0) {
- const char* rev = strstr(buf, ": ");
- if (rev) {
- *revision = strtoul(rev + 2, 0, 16);
- }
+ sscanf(buf, "Revision : %ux", revision);
}
}
fclose(fp);