Currently the palinfo code aborts without printing anything on the
first pal call that fails.
The appended patch makes it a little more tolerant... if a call fails,
then it'll display what it already has.
Signed-off-by: Peter Chubb <[EMAIL PROTECTED]>
diff --git a/arch/ia64/kernel/palinfo.c b/arch/ia64/kernel/palinfo.c
--- a/arch/ia64/kernel/palinfo.c
+++ b/arch/ia64/kernel/palinfo.c
@@ -323,8 +323,10 @@ vm_info(char *page)
vm_info_1.pal_vm_info_1_s.key_size,
vm_info_1.pal_vm_info_1_s.hash_tag_id,
vm_info_2.pal_vm_info_2_s.rid_size);
- if (ia64_pal_mem_attrib(&attrib) != 0)
- return 0;
+ if (ia64_pal_mem_attrib(&attrib) != 0){
+ *p++ = '\n';
+ return p-page;
+ }
p += sprintf(p, "Supported memory attributes : ");
sep = "";
@@ -338,7 +340,7 @@ vm_info(char *page)
if ((status = ia64_pal_vm_page_size(&tr_pages, &vw_pages)) !=0) {
printk(KERN_ERR "ia64_pal_vm_page_size=%ld\n", status);
- return 0;
+ return p-page;
}
p += sprintf(p,
@@ -359,7 +361,7 @@ vm_info(char *page)
if ((status=ia64_get_ptce(&ptce)) != 0) {
printk(KERN_ERR "ia64_get_ptce=%ld\n", status);
- return 0;
+ return p-page;
}
p += sprintf(p,
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html