| Index: src/platform/vboot_reference/include/utility.h
|
| diff --git a/src/platform/vboot_reference/include/utility.h b/src/platform/vboot_reference/include/utility.h
|
| index 429223cdf1ae571367982a7553b9ebfcee8f1931..8619cd219899b77991f1ef4a8d07ab1dc454252b 100644
|
| --- a/src/platform/vboot_reference/include/utility.h
|
| +++ b/src/platform/vboot_reference/include/utility.h
|
| @@ -10,9 +10,20 @@
|
| #ifndef VBOOT_REFERENCE_UTILITY_H_
|
| #define VBOOT_REFERENCE_UTILITY_H_
|
|
|
| -#include <inttypes.h>
|
| +#include <stdint.h>
|
| #include <string.h>
|
|
|
| +/* Outputs an error message and quits. */
|
| +void error(const char *format, ...);
|
| +
|
| +/* Outputs debug/warning messages. */
|
| +void debug(const char *format, ...);
|
| +
|
| +
|
| +#define assert(expr) do { if (!(expr)) { \
|
| + error("assert fail: %s at %s:%d\n", \
|
| + #expr, __FILE__, __LINE__); }} while(0)
|
| +
|
| /* Combine [msw] and [lsw] uint16s to a uint32_t with its [msw] and
|
| * [lsw] forming the most and least signficant 16-bit words.
|
| */
|
|
|