Skip to contentSkip to conversation

xen/arm: domain_build: Panic message should end with a newline

PATCH In review Julien Grall 4 participants 4 messages Feb 18, 2019 – Feb 25, 2019

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 xen/arm: domain_build: Panic message should end with a newline

Since commit 25eb5eec79 "xen: Fix inconsistent callers of panic()" all the panic message should end with a newline. Unfortunately, some commits pushed afterwards does not follow the rule.

Modify the offending panic messages to avoid more inconsistency.

---

---
 xen/arch/arm/domain_build.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
xen/arch/arm/domain_build.c +3 -3
index c92f8c6be1..d9836779d1 100644
@@ -1580,7 +1580,7 @@ static int __init make_gic_domU_node(const struct domain *d, void *fdt)
     case GIC_V2:
         return make_gicv2_domU_node(d, fdt);
     default:
-        panic("Unsupported GIC version");
+        panic("Unsupported GIC version\n");
     }
 }
 
@@ -2086,12 +2086,12 @@ void __init create_domUs(void)
 
         d = domain_create(++max_init_domid, &d_cfg, false);
         if ( IS_ERR(d) )
-            panic("Error creating domain %s", dt_node_name(node));
+            panic("Error creating domain %s\n", dt_node_name(node));
 
         d->is_console = true;
 
         if ( construct_domU(d, node) != 0 )
-            panic("Could not set up domain %s", dt_node_name(node));
+            panic("Could not set up domain %s\n", dt_node_name(node));
 
         domain_unpause_by_systemcontroller(d);
     }
Signature · 7 lines
2.11.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Acked-by on v2 1/1
#1 lore raw
Quoted 7 lines · Julien Grall

Since commit 25eb5eec79 "xen: Fix inconsistent callers of panic()" all the panic message should end with a newline. Unfortunately, some commits pushed afterwards does not follow the rule.

Modify the offending panic messages to avoid more inconsistency.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#2 lore raw
In reply to Julien Grall
Quoted 7 lines · Julien Grall

Since commit 25eb5eec79 "xen: Fix inconsistent callers of panic()" all the panic message should end with a newline. Unfortunately, some commits pushed afterwards does not follow the rule.

Modify the offending panic messages to avoid more inconsistency.

Juergen

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reviewed-by on v2 1/1
#3 lore raw
In reply to Julien Grall
Quoted 7 lines · Julien Grall

Since commit 25eb5eec79 "xen: Fix inconsistent callers of panic()" all the panic message should end with a newline. Unfortunately, some commits pushed afterwards does not follow the rule.

Modify the offending panic messages to avoid more inconsistency.

Quoted 38 lines

---

---
 xen/arch/arm/domain_build.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
xen/arch/arm/domain_build.c +3 -3
index c92f8c6be1..d9836779d1 100644
@@ -1580,7 +1580,7 @@ static int __init make_gic_domU_node(const struct domain *d, void *fdt)
     case GIC_V2:
         return make_gicv2_domU_node(d, fdt);
     default:
-        panic("Unsupported GIC version");
+        panic("Unsupported GIC version\n");
     }
 }
 
@@ -2086,12 +2086,12 @@ void __init create_domUs(void)
 
         d = domain_create(++max_init_domid, &d_cfg, false);
         if ( IS_ERR(d) )
-            panic("Error creating domain %s", dt_node_name(node));
+            panic("Error creating domain %s\n", dt_node_name(node));
 
         d->is_console = true;
 
         if ( construct_domU(d, node) != 0 )
-            panic("Could not set up domain %s", dt_node_name(node));
+            panic("Could not set up domain %s\n", dt_node_name(node));
 
         domain_unpause_by_systemcontroller(d);
     }
Signature · 1 line
2.11.0

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel