ARM: tegra: XUSB padctl: Add new lines for errors
Subsystems (4)
PATCH 1/2 ARM: tegra: XUSB padctl: Add new lines for errors
Add new lines for error messages to make them easier to read.
Signed-off-by Peter Robinson <[email protected]>
--- arch/arm/mach-tegra/xusb-padctl-common.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
arch/arm/mach-tegra/xusb-padctl-common.c +6 -6
@@ -84,7 +84,7 @@ tegra_xusb_padctl_group_parse_dt(struct tegra_xusb_padctl *padctl, len =ofnode_read_string_count (node,"nvidia,lanes" );if (len <0 ) { -pr_err ("failed to parse \"nvidia,lanes\" property" ); +pr_err ("failed to parse \"nvidia,lanes\" property\n" );return -EINVAL ; }
@@ -94,7 +94,7 @@ tegra_xusb_padctl_group_parse_dt(struct tegra_xusb_padctl *padctl, ret =ofnode_read_string_index (node,"nvidia,lanes" , i, &group->pins[i]);if (ret) { -pr_err ("failed to read string from \"nvidia,lanes\" property" ); +pr_err ("failed to read string from \"nvidia,lanes\" property\n" );return -EINVAL ; } }
@@ -104,7 +104,7 @@ tegra_xusb_padctl_group_parse_dt(struct tegra_xusb_padctl *padctl, ret =ofnode_read_string_index (node,"nvidia,function" ,0 , &group->func);if (ret) { -pr_err ("failed to parse \"nvidia,func\" property" ); +pr_err ("failed to parse \"nvidia,func\" property\n" );return -EINVAL ; }
@@ -232,7 +232,7 @@ tegra_xusb_padctl_config_parse_dt(struct tegra_xusb_padctl *padctl, err =tegra_xusb_padctl_group_parse_dt (padctl, group, subnode);if (err <0 ) { -pr_err ("failed to parse group %s" , group->name); +pr_err ("failed to parse group %s\n" , group->name);return err; }
@@ -261,7 +261,7 @@ static int tegra_xusb_padctl_parse_dt(struct tegra_xusb_padctl *padctl, err =tegra_xusb_padctl_config_parse_dt (padctl, config, subnode);if (err <0 ) { -pr_err ("failed to parse entry %s: %d" , +pr_err ("failed to parse entry %s: %d\n" , config->name, err);continue ; }
@@ -289,7 +289,7 @@ int tegra_xusb_process_nodes(ofnode nodes[], unsigned int count, err =tegra_xusb_padctl_parse_dt (&padctl, nodes[i]);if (err <0 ) { -pr_err ("failed to parse DT: %d" , err); +pr_err ("failed to parse DT: %d\n" , err);continue ; }
Signature · 1 line
2.36.0
PATCH 2/2 pci: tegra: Update error prints with new lines
Add new lines to make errorr messages easier to read.
Signed-off-by Peter Robinson <[email protected]>
--- drivers/pci/pci_tegra.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/pci/pci_tegra.c +2 -2
@@ -455,7 +455,7 @@ static int tegra_pcie_parse_port_info(ofnode node, uint *index, uint *lanes) err =ofnode_read_u32_default (node,"nvidia,num-lanes" ,-1 );if (err <0 ) { -pr_err ("failed to parse \"nvidia,num-lanes\" property" ); +pr_err ("failed to parse \"nvidia,num-lanes\" property\n" );return err; }
@@ -463,7 +463,7 @@ static int tegra_pcie_parse_port_info(ofnode node, uint *index, uint *lanes) err =ofnode_read_pci_addr (node,0 ,"reg" , &addr);if (err <0 ) { -pr_err ("failed to parse \"reg\" property" ); +pr_err ("failed to parse \"reg\" property\n" );return err; }
Signature · 1 line
2.36.0