]> git.sur5r.net Git - u-boot/commitdiff
armv8: ls2085aqds: Print function name during SerDes error
authorPrabhakar Kushwaha <prabhakar@freescale.com>
Wed, 4 Nov 2015 06:55:55 +0000 (12:25 +0530)
committerYork Sun <yorksun@freescale.com>
Mon, 30 Nov 2015 16:53:02 +0000 (08:53 -0800)
Print function name along with SerDes Protocol during SerDes Protocol
not supported error.

Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
board/freescale/ls2085aqds/eth.c

index b8a2bf49e685aef90353deb4607b119e9cc799f5..d116cd51db6ad43dbae8cc5c7af0404b7eef00ca 100644 (file)
@@ -474,8 +474,8 @@ static void initialize_dpmac_to_slot(void)
                       serdes1_prtcl);
                break;
        default:
-               printf("qds: WRIOP: Unsupported SerDes1 Protocol 0x%02x\n",
-                      serdes1_prtcl);
+               printf("%s qds: WRIOP: Unsupported SerDes1 Protocol 0x%02x\n",
+                      __func__, serdes1_prtcl);
                break;
        }
 
@@ -505,8 +505,8 @@ static void initialize_dpmac_to_slot(void)
                }
                break;
        default:
-               printf("qds: WRIOP: Unsupported SerDes2 Protocol 0x%02x\n",
-                      serdes2_prtcl);
+               printf(" %s qds: WRIOP: Unsupported SerDes2 Protocol 0x%02x\n",
+                      __func__ , serdes2_prtcl);
                break;
        }
 }
@@ -580,8 +580,8 @@ void ls2085a_handle_phy_interface_sgmii(int dpmac_id)
                }
        break;
        default:
-               printf("qds: WRIOP: Unsupported SerDes1 Protocol 0x%02x\n",
-                      serdes1_prtcl);
+               printf("%s qds: WRIOP: Unsupported SerDes1 Protocol 0x%02x\n",
+                      __func__ , serdes1_prtcl);
        break;
        }
 
@@ -626,8 +626,8 @@ serdes2:
        }
        break;
        default:
-               printf("qds: WRIOP: Unsupported SerDes2 Protocol 0x%02x\n",
-                      serdes2_prtcl);
+               printf("%s qds: WRIOP: Unsupported SerDes2 Protocol 0x%02x\n",
+                      __func__, serdes2_prtcl);
        break;
        }
 }