/* Copyright (c) 2011 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. * * Stub implementations of firmware-provided API functions. */ #define _STUB_IMPLEMENTATION_ #include #include #include #include #include #include "vboot_api.h" /* disable MSVC warnings on unused arguments */ __pragma(warning (disable: 4100)) /* U-Boot's printf uses '%L' for uint64_t. gcc uses '%l'. */ #define MAX_FMT 255 static char fmtbuf[MAX_FMT+1]; static const char *fixfmt(const char *format) { int i; for(i=0; i