Add quotes around the name of (unconfigured) devices like we do for other
authorkettenis <kettenis@openbsd.org>
Fri, 1 Dec 2017 16:06:25 +0000 (16:06 +0000)
committerkettenis <kettenis@openbsd.org>
Fri, 1 Dec 2017 16:06:25 +0000 (16:06 +0000)
iic(4) controllers.

ok jcs@

sys/dev/ic/dwiic.c

index 02d36e2..38431b1 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: dwiic.c,v 1.1 2017/11/16 18:12:27 jcs Exp $ */
+/* $OpenBSD: dwiic.c,v 1.2 2017/12/01 16:06:25 kettenis Exp $ */
 /*
  * Synopsys DesignWare I2C controller
  *
@@ -110,7 +110,7 @@ dwiic_i2c_print(void *aux, const char *pnp)
        struct i2c_attach_args *ia = aux;
 
        if (pnp != NULL)
-               printf("%s at %s", ia->ia_name, pnp);
+               printf("\"%s\" at %s", ia->ia_name, pnp);
 
        printf(" addr 0x%x", ia->ia_addr);