File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ void print_pgm_check_info(void);
72
72
unsigned long randomize_within_range (unsigned long size , unsigned long align ,
73
73
unsigned long min , unsigned long max );
74
74
void setup_vmem (unsigned long kernel_start , unsigned long kernel_end , unsigned long asce_limit );
75
- void __printf (1 , 2 ) boot_printk (const char * fmt , ...);
75
+ int __printf (1 , 2 ) boot_printk (const char * fmt , ...);
76
76
void print_stacktrace (unsigned long sp );
77
77
void error (char * m );
78
78
int get_random (unsigned long limit , unsigned long * value );
Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ static void boot_console_earlyprintk(const char *buf)
174
174
(lenmod == 'z') ? va_arg(args, typemod long) : \
175
175
va_arg(args, typemod int))
176
176
177
- void boot_printk (const char * fmt , ...)
177
+ int boot_printk (const char * fmt , ...)
178
178
{
179
179
char buf [1024 ] = { 0 };
180
180
char * end = buf + sizeof (buf ) - 1 ; /* make sure buf is 0 terminated */
@@ -248,4 +248,5 @@ void boot_printk(const char *fmt, ...)
248
248
boot_rb_add (buf , len );
249
249
boot_console_earlyprintk (buf );
250
250
}
251
+ return len ;
251
252
}
You can’t perform that action at this time.
0 commit comments