Coverage Report

Created: 2026-03-11 06:21

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/u-boot/cmd/panic.c
Line
Count
Source
1
// SPDX-License-Identifier: GPL-2.0+
2
/*
3
 * Copyright (c) 2020 Theobroma Systems Design und Consulting GmbH
4
 */
5
6
#include <vsprintf.h>
7
#include <command.h>
8
9
static int do_panic(struct cmd_tbl *cmdtp, int flag, int argc,
10
        char * const argv[])
11
0
{
12
0
  char *text = (argc < 2) ? "" : argv[1];
13
14
0
  panic(text);
15
16
0
  return CMD_RET_SUCCESS;
17
0
}
18
19
U_BOOT_CMD(
20
  panic,  2,  1,  do_panic,
21
  "Panic with optional message",
22
  "[message]"
23
);