]> git.sur5r.net Git - u-boot/blobdiff - drivers/net/sun8i_emac.c
net: sun8i-emac: fix printing NULL character
[u-boot] / drivers / net / sun8i_emac.c
index b6e5dafe83e37bae65f984b1104cea4278f32c80..23c4d68f778849fd8112b5fed221f8a687dbc89c 100644 (file)
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * (C) Copyright 2016
  * Author: Amit Singh Tomar, amittomer25@gmail.com
  *
- * SPDX-License-Identifier:     GPL-2.0+
- *
  * Ethernet driver for H3/A64/A83T based SoC's
  *
  * It is derived from the work done by
@@ -844,8 +843,7 @@ static int sun8i_emac_eth_ofdata_to_platdata(struct udevice *dev)
        priv->variant = dev_get_driver_data(dev);
 
        if (!priv->variant) {
-               printf("%s: Missing variant '%s'\n", __func__,
-                      (char *)priv->variant);
+               printf("%s: Missing variant\n", __func__);
                return -EINVAL;
        }