blob: b6bf4670b1cea37031a70df351b33756f916fd14 [file] [log] [blame]
Simon Glass4c0bf972023-10-01 19:13:06 -06001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright 2023 Google LLC
4 * Written by Simon Glass <sjg@chromium.org>
5 */
6
7#include <common.h>
8#include <command.h>
9#include <cli.h>
10
11static int do_history(struct cmd_tbl *cmdtp, int flag, int argc,
12 char *const argv[])
13{
14 cread_print_hist_list();
15
16 return 0;
17}
18
19U_BOOT_CMD(
20 history, CONFIG_SYS_MAXARGS, 1, do_history,
21 "print command history",
22 ""
23);