blob: 533d2c70843a7ecb5bf57d0bee5b0b3a66cadf43 [file] [log] [blame]
Aaron Wisnerdb511202018-06-26 15:38:35 -05001#pragma once
2
3#include <inttypes.h>
4#include <stdlib.h>
5
6#include <string>
7
8#include <bootimg.h>
9
10/* util stuff */
11double now();
Aaron Wisnerdb511202018-06-26 15:38:35 -050012void set_verbose();
13
Tom Cherry11f12092018-08-29 21:36:28 -070014void Status(const std::string& message);
15
Aaron Wisnerdb511202018-06-26 15:38:35 -050016// These printf-like functions are implemented in terms of vsnprintf, so they
17// use the same attribute for compile-time format string checking.
18void die(const char* fmt, ...) __attribute__((__noreturn__))
19__attribute__((__format__(__printf__, 1, 2)));
20void verbose(const char* fmt, ...) __attribute__((__format__(__printf__, 1, 2)));