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

Unified Diff: src/platform/vboot_reference/include/tlcl.h

Issue 1599001: VBoot Reference: Refactor Pass 1: Split {firmware|kernel}_image (Closed)
Patch Set: Created 10 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
Index: src/platform/vboot_reference/include/tlcl.h
diff --git a/src/platform/vboot_reference/include/tlcl.h b/src/platform/vboot_reference/include/tlcl.h
index e0b56262d4c17081bdd4651d6488e2912b7d781c..2e6d3fd84588fd8f3a95feafb938cc6c1a74767d 100644
--- a/src/platform/vboot_reference/include/tlcl.h
+++ b/src/platform/vboot_reference/include/tlcl.h
@@ -16,41 +16,6 @@
#include <stdio.h>
#include <stdlib.h>
-#define POSSIBLY_UNUSED __attribute__((unused))
-
-#ifdef __STRICT_ANSI__
-#define INLINE
-#else
-#define INLINE inline
-#endif
-
-/* Outputs an error message and quits the program.
- */
-POSSIBLY_UNUSED
-static void error(const char *format, ...) {
- va_list ap;
- va_start(ap, format);
- fprintf(stderr, "ERROR: ");
- vfprintf(stderr, format, ap);
- va_end(ap);
- exit(1);
-}
-
-/* Outputs a warning and continues.
- */
-POSSIBLY_UNUSED
-static void warning(const char *format, ...) {
- va_list ap;
- va_start(ap, format);
- fprintf(stderr, "WARNING: ");
- vfprintf(stderr, format, ap);
- va_end(ap);
-}
-
-#define assert(expr) do { if (!(expr)) { \
- error("assert fail: %s at %s:%d\n", \
- #expr, __FILE__, __LINE__); }} while(0)
-
/* Call this first.
*/
void TlclLibinit(void);
« no previous file with comments | « src/platform/vboot_reference/include/kernel_image_fw.h ('k') | src/platform/vboot_reference/include/utility.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698