blob: 20be46167bcc6bfcd2d8228fb5405ff57e17ff9a [file] [log] [blame]
#pragma once
#include <inttypes.h>
#include <stdlib.h>
#include <string>
#include <bootimg.h>
/* util stuff */
double now();
char* xstrdup(const char*);
void set_verbose();
void Status(const std::string& message);
// These printf-like functions are implemented in terms of vsnprintf, so they
// use the same attribute for compile-time format string checking.
void die(const char* fmt, ...) __attribute__((__noreturn__))
__attribute__((__format__(__printf__, 1, 2)));
void verbose(const char* fmt, ...) __attribute__((__format__(__printf__, 1, 2)));