mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 09:04:39 +02:00
s390/boot: Make boot_printk() return int
Modify boot_printk() to return int, aligning it with printk(). Signed-off-by: Vasily Gorbik <gor@linux.ibm.com> Acked-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
This commit is contained in:
parent
816b5feaed
commit
847e5a4c71
|
|
@ -72,7 +72,7 @@ void print_pgm_check_info(void);
|
|||
unsigned long randomize_within_range(unsigned long size, unsigned long align,
|
||||
unsigned long min, unsigned long max);
|
||||
void setup_vmem(unsigned long kernel_start, unsigned long kernel_end, unsigned long asce_limit);
|
||||
void __printf(1, 2) boot_printk(const char *fmt, ...);
|
||||
int __printf(1, 2) boot_printk(const char *fmt, ...);
|
||||
void print_stacktrace(unsigned long sp);
|
||||
void error(char *m);
|
||||
int get_random(unsigned long limit, unsigned long *value);
|
||||
|
|
|
|||
|
|
@ -174,7 +174,7 @@ static void boot_console_earlyprintk(const char *buf)
|
|||
(lenmod == 'z') ? va_arg(args, typemod long) : \
|
||||
va_arg(args, typemod int))
|
||||
|
||||
void boot_printk(const char *fmt, ...)
|
||||
int boot_printk(const char *fmt, ...)
|
||||
{
|
||||
char buf[1024] = { 0 };
|
||||
char *end = buf + sizeof(buf) - 1; /* make sure buf is 0 terminated */
|
||||
|
|
@ -248,4 +248,5 @@ void boot_printk(const char *fmt, ...)
|
|||
boot_rb_add(buf, len);
|
||||
boot_console_earlyprintk(buf);
|
||||
}
|
||||
return len;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user