mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-10-26 17:48:26 +00:00 
			
		
		
		
	After adding the U_BOOT_LONGHELP macro some new commands came in still that were not making use if it. Switch these cases over and in a few places add missing newlines as well. Signed-off-by: Tom Rini <trini@konsulko.com>
		
			
				
	
	
		
			28 lines
		
	
	
		
			630 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			630 B
		
	
	
	
		
			C
		
	
	
	
	
	
| // SPDX-License-Identifier: GPL-2.0+
 | |
| /*
 | |
|  * The 'exception' command can be used for testing exception handling.
 | |
|  *
 | |
|  * Copyright (c) 2018, Heinrich Schuchardt <xypron.glpk@gmx.de>
 | |
|  */
 | |
| 
 | |
| #include <command.h>
 | |
| 
 | |
| static int do_undefined(struct cmd_tbl *cmdtp, int flag, int argc,
 | |
| 			char *const argv[])
 | |
| {
 | |
| 	asm volatile (".word 0xffff\n");
 | |
| 	return CMD_RET_FAILURE;
 | |
| }
 | |
| 
 | |
| static struct cmd_tbl cmd_sub[] = {
 | |
| 	U_BOOT_CMD_MKENT(undefined, CONFIG_SYS_MAXARGS, 1, do_undefined,
 | |
| 			 "", ""),
 | |
| };
 | |
| 
 | |
| U_BOOT_LONGHELP(exception,
 | |
| 	"<ex>\n"
 | |
| 	"  The following exceptions are available:\n"
 | |
| 	"  undefined  - undefined instruction\n");
 | |
| 
 | |
| #include <exception.h>
 |