Debian Codegraph @

stubdom/grub.patches/20print_func.diff

raw
1 2006-01-05 Otavio Salvador <[email protected]>
2
3 * Rediff.
4
5 2005-16-10 Samuel Thibault <[email protected]>
6
7 * docs/grub.texi: Added print command description.
8 * stage2/builtins.c(print_func): New function.
9 (builtin_print): New variable.
10 (builtin_table): Added builtin_print in table.
11
12 Debian Status Following:
13 Added by: Otavio Salvador
14 Date: 2006-01-05
15
16 diff -Nur grub-0.97-bkp/stage2/builtins.c grub-0.97/stage2/builtins.c
17 --- grub-0.97-bkp/stage2/builtins.c 2006-01-05 10:59:05.550350040 -0200
18 +++ grub-0.97/stage2/builtins.c 2006-01-05 11:19:28.422445224 -0200
19 @@ -2323,6 +2323,25 @@
20 "Probe I/O ports used for the drive DRIVE."
21 };
22
23 +/* print */
24 +static int
25 +print_func (char *arg, int flags)
26 +{
27 + printf("%s\n", arg);
28 +
29 + return 0;
30 +}
31 +
32 +static struct builtin builtin_print =
33 +{
34 + "print",
35 + print_func,
36 + BUILTIN_CMDLINE | BUILTIN_MENU | BUILTIN_NO_ECHO,
37 + "print [MESSAGE ...]",
38 + "Print MESSAGE."
39 +};
40 +
41 +
42
43 /* kernel */
44 static int
45 @@ -4848,6 +4867,7 @@
46 &builtin_parttype,
47 &builtin_password,
48 &builtin_pause,
49 + &builtin_print,
50 #ifdef GRUB_UTIL
51 &builtin_quit,
52 #endif /* GRUB_UTIL */