~ubuntu-branches/debian/jessie/grub/jessie

« back to all changes in this revision

Viewing changes to debian/patches/print_func.diff

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2011-03-17 13:34:14 UTC
  • Revision ID: james.westby@ubuntu.com-20110317133414-cawa48d482iuqqb9
Tags: 0.97-65
* Fix grub/migrate_from_legacy title to not end with a full stop.
* Fix update-grub(8) groff typo (".bar" instead of ".br").
* Adjust doc-base file to account for renaming of grub.info to
  grub-legacy.info.
* Compare -trunk kernels earlier than numeric ABIs (thanks, Aaron M. Ucko
  and Andreas Beckmann; closes: #570318).
* Convert from home-grown patch system to quilt.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
2006-01-05  Otavio Salvador  <otavio@debian.org>
2
 
 
3
 
       * Rediff.
4
 
 
5
 
2005-16-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
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/docs/grub.texi grub-0.97/docs/grub.texi
17
 
--- grub-0.97-bkp/docs/grub.texi        2006-01-05 10:59:05.564347912 -0200
18
 
+++ grub-0.97/docs/grub.texi    2006-01-05 11:18:59.033912960 -0200
19
 
@@ -2685,6 +2685,7 @@
20
 
 * module::                      Load a module
21
 
 * modulenounzip::               Load a module without decompression
22
 
 * pause::                       Wait for a key press
23
 
+* print::                       Print a message
24
 
 * quit::                        Exit from the grub shell
25
 
 * reboot::                      Reboot your computer
26
 
 * read::                        Read data from memory
27
 
@@ -3091,6 +3092,16 @@
28
 
 @end deffn
29
 
 
30
 
 
31
 
+@node print
32
 
+@subsection print
33
 
+
34
 
+@deffn Command print message @dots{}
35
 
+Print the @var{message}. Note that placing @key{^G} (ASCII code 7) in the
36
 
+message will cause the speaker to emit the standard beep sound, which is
37
 
+useful for visually impaired people.
38
 
+@end deffn
39
 
+
40
 
+
41
 
 @node quit
42
 
 @subsection quit
43
 
 
44
 
diff -Nur grub-0.97-bkp/stage2/builtins.c grub-0.97/stage2/builtins.c
45
 
--- grub-0.97-bkp/stage2/builtins.c     2006-01-05 10:59:05.550350040 -0200
46
 
+++ grub-0.97/stage2/builtins.c 2006-01-05 11:19:28.422445224 -0200
47
 
@@ -2323,6 +2323,25 @@
48
 
   "Probe I/O ports used for the drive DRIVE."
49
 
 };
50
 
 
51
 
+/* print */
52
 
+static int
53
 
+print_func (char *arg, int flags)
54
 
+{
55
 
+  printf("%s\n", arg);
56
 
+
57
 
+  return 0;
58
 
+}
59
 
+
60
 
+static struct builtin builtin_print =
61
 
+{
62
 
+  "print",
63
 
+  print_func,
64
 
+  BUILTIN_CMDLINE | BUILTIN_MENU | BUILTIN_NO_ECHO,
65
 
+  "print [MESSAGE ...]",
66
 
+  "Print MESSAGE."
67
 
+};
68
 
+
69
 
+
70
 
 
71
 
 /* kernel */
72
 
 static int
73
 
@@ -4848,6 +4867,7 @@
74
 
   &builtin_parttype,
75
 
   &builtin_password,
76
 
   &builtin_pause,
77
 
+  &builtin_print,
78
 
 #ifdef GRUB_UTIL
79
 
   &builtin_quit,
80
 
 #endif /* GRUB_UTIL */