File tree Expand file tree Collapse file tree 2 files changed +1
-12
lines changed Expand file tree Collapse file tree 2 files changed +1
-12
lines changed Original file line number Diff line number Diff line change 4
4
5
5
#include <stdio.h>
6
6
7
- /* controllable printf */
8
- extern int pr_output ;
9
- #define printk (fmt , ...) \
10
- (pr_output ? printf(fmt, ##__VA_ARGS__) : 0)
7
+ #define printk (fmt , ...) printf(fmt, ##__VA_ARGS__)
11
8
12
9
#define pr_err printk
13
10
#define pr_warn printk
Original file line number Diff line number Diff line change 14
14
#include <linux/kernel.h>
15
15
#include <linux/bootconfig.h>
16
16
17
- int pr_output = 1 ;
18
-
19
17
static int xbc_show_array (struct xbc_node * node )
20
18
{
21
19
const char * val ;
@@ -227,13 +225,7 @@ int delete_xbc(const char *path)
227
225
return - errno ;
228
226
}
229
227
230
- /*
231
- * Suppress error messages in xbc_init() because it can be just a
232
- * data which concidentally matches the size and checksum footer.
233
- */
234
- pr_output = 0 ;
235
228
size = load_xbc_from_initrd (fd , & buf );
236
- pr_output = 1 ;
237
229
if (size < 0 ) {
238
230
ret = size ;
239
231
pr_err ("Failed to load a boot config from initrd: %d\n" , ret );
You can’t perform that action at this time.
0 commit comments