Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 318411
b: refs/heads/master
c: 7aac301
h: refs/heads/master
i:
  318409: d27b3c4
  318407: e807473
v: v3
  • Loading branch information
Joe Millenbach authored and H. Peter Anvin committed Jul 21, 2012
1 parent e16ddcc commit d2e081f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cb454fe10400566214ec690318a0167ff7f5b8ca
refs/heads/master: 7aac3015b533add3e85222f9fd2ab66216b38746
12 changes: 1 addition & 11 deletions trunk/arch/x86/boot/compressed/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,15 +169,11 @@ static void serial_putchar(int ch)
outb(ch, early_serial_base + TXR);
}

void __putstr(int error, const char *s)
void __putstr(const char *s)
{
int x, y, pos;
char c;

#ifndef CONFIG_X86_VERBOSE_BOOTUP
if (!error)
return;
#endif
if (early_serial_base) {
const char *str = s;
while (*str) {
Expand Down Expand Up @@ -223,12 +219,6 @@ void __putstr(int error, const char *s)
outb(0xff & (pos >> 1), vidport+1);
}

static void debug_putstr(const char *s)
{
if (debug)
putstr(s);
}

void *memset(void *s, int c, size_t n)
{
int i;
Expand Down
17 changes: 13 additions & 4 deletions trunk/arch/x86/boot/compressed/misc.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,19 @@

/* misc.c */
extern struct boot_params *real_mode; /* Pointer to real-mode data */
void __putstr(int error, const char *s);
#define putstr(__x) __putstr(0, __x)
#define error_putstr(__x) __putstr(1, __x)
#define puts(__x) __putstr(0, __x)
void __putstr(const char *s);
#define error_putstr(__x) __putstr(__x)

#ifdef CONFIG_X86_VERBOSE_BOOTUP

#define debug_putstr(__x) __putstr(__x)

#else

static inline void debug_putstr(const char *s)
{ }

#endif

/* cmdline.c */
int cmdline_find_option(const char *option, char *buffer, int bufsize);
Expand Down

0 comments on commit d2e081f

Please sign in to comment.