diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Kconfig.debug | 4 | ||||
-rw-r--r-- | lib/hexdump.c | 3 | ||||
-rw-r--r-- | lib/kobject.c | 4 |
3 files changed, 6 insertions, 5 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 1e5f207b9074..a60109307d32 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug | |||
@@ -359,7 +359,7 @@ config DEBUG_HIGHMEM | |||
359 | config DEBUG_BUGVERBOSE | 359 | config DEBUG_BUGVERBOSE |
360 | bool "Verbose BUG() reporting (adds 70K)" if DEBUG_KERNEL && EMBEDDED | 360 | bool "Verbose BUG() reporting (adds 70K)" if DEBUG_KERNEL && EMBEDDED |
361 | depends on BUG | 361 | depends on BUG |
362 | depends on ARM || AVR32 || M32R || M68K || SPARC32 || SPARC64 || FRV || SUPERH || GENERIC_BUG || BFIN | 362 | depends on ARM || AVR32 || M32R || M68K || SPARC32 || SPARC64 || FRV || SUPERH || GENERIC_BUG || BLACKFIN |
363 | default !EMBEDDED | 363 | default !EMBEDDED |
364 | help | 364 | help |
365 | Say Y here to make BUG() panics output the file name and line number | 365 | Say Y here to make BUG() panics output the file name and line number |
@@ -409,7 +409,7 @@ config DEBUG_SG | |||
409 | 409 | ||
410 | config FRAME_POINTER | 410 | config FRAME_POINTER |
411 | bool "Compile the kernel with frame pointers" | 411 | bool "Compile the kernel with frame pointers" |
412 | depends on DEBUG_KERNEL && (X86 || CRIS || M68K || M68KNOMMU || FRV || UML || S390 || AVR32 || SUPERH || BFIN) | 412 | depends on DEBUG_KERNEL && (X86 || CRIS || M68K || M68KNOMMU || FRV || UML || S390 || AVR32 || SUPERH || BLACKFIN) |
413 | default y if DEBUG_INFO && UML | 413 | default y if DEBUG_INFO && UML |
414 | help | 414 | help |
415 | If you say Y here the resulting kernel image will be slightly larger | 415 | If you say Y here the resulting kernel image will be slightly larger |
diff --git a/lib/hexdump.c b/lib/hexdump.c index bd5edaeaa80b..343546550dc9 100644 --- a/lib/hexdump.c +++ b/lib/hexdump.c | |||
@@ -106,7 +106,8 @@ void hex_dump_to_buffer(const void *buf, size_t len, int rowsize, | |||
106 | while (lx < (linebuflen - 1) && lx < (ascii_column - 1)) | 106 | while (lx < (linebuflen - 1) && lx < (ascii_column - 1)) |
107 | linebuf[lx++] = ' '; | 107 | linebuf[lx++] = ' '; |
108 | for (j = 0; (j < rowsize) && (j < len) && (lx + 2) < linebuflen; j++) | 108 | for (j = 0; (j < rowsize) && (j < len) && (lx + 2) < linebuflen; j++) |
109 | linebuf[lx++] = isprint(ptr[j]) ? ptr[j] : '.'; | 109 | linebuf[lx++] = (isascii(ptr[j]) && isprint(ptr[j])) ? ptr[j] |
110 | : '.'; | ||
110 | nil: | 111 | nil: |
111 | linebuf[lx++] = '\0'; | 112 | linebuf[lx++] = '\0'; |
112 | } | 113 | } |
diff --git a/lib/kobject.c b/lib/kobject.c index a7e3bf4d3c70..b52e9f4ef371 100644 --- a/lib/kobject.c +++ b/lib/kobject.c | |||
@@ -313,8 +313,8 @@ int kobject_rename(struct kobject * kobj, const char *new_name) | |||
313 | struct kobject *temp_kobj; | 313 | struct kobject *temp_kobj; |
314 | temp_kobj = kset_find_obj(kobj->kset, new_name); | 314 | temp_kobj = kset_find_obj(kobj->kset, new_name); |
315 | if (temp_kobj) { | 315 | if (temp_kobj) { |
316 | printk(KERN_WARNING "kobject '%s' can not be renamed " | 316 | printk(KERN_WARNING "kobject '%s' cannot be renamed " |
317 | "to '%s' as '%s' is already in existance.\n", | 317 | "to '%s' as '%s' is already in existence.\n", |
318 | kobject_name(kobj), new_name, new_name); | 318 | kobject_name(kobj), new_name, new_name); |
319 | kobject_put(temp_kobj); | 319 | kobject_put(temp_kobj); |
320 | return -EINVAL; | 320 | return -EINVAL; |