Files
u-boot/include/bootctl/util.h
Simon Glass d9152ea75e bootctl: Initial experimentation
This provides a basic prototype for boot control.

Some documentation is in boot/bootctl/README.rst
2025-09-28 14:32:36 -06:00

33 lines
730 B
C

/* SPDX-License-Identifier: GPL-2.0+ */
/*
* Utility functions
*
* Copyright 2025 Canonical Ltd
* Written by Simon Glass <simon.glass@canonical.com>
*/
#ifndef __bootctl_util_h
#define __bootctl_util_h
struct alist;
struct udevice;
/**
* bc_printf() - Print a string to the display
*
* @fmt: printf() format string for log record
* @...: Optional parameters, according to the format string @fmt
* Return: Number of characters emitted
*/
int bc_printf(struct udevice *disp, const char *fmt, ...)
__attribute__ ((format (__printf__, 2, 3)));
/**
* show_measures() - Show measurements that have been completed
*
* @result: List of struct measure_info records
*/
void show_measures(struct alist *result);
#endif