net/virtio-user: fix inconsistent name
[dpdk.git] / drivers / net / virtio / virtio_user_ethdev.c
index 782d7d3..daef09b 100644 (file)
@@ -331,7 +331,7 @@ virtio_user_pmd_devinit(const char *name, const char *params)
        int ret = -1;
 
        if (!params || params[0] == '\0') {
-               PMD_INIT_LOG(ERR, "arg %s is mandatory for virtio-user",
+               PMD_INIT_LOG(ERR, "arg %s is mandatory for virtio_user",
                          VIRTIO_USER_ARG_QUEUE_SIZE);
                goto end;
        }
@@ -342,7 +342,7 @@ virtio_user_pmd_devinit(const char *name, const char *params)
                goto end;
        }
 
-       if (rte_kvargs_count(kvlist, VIRTIO_USER_ARG_PATH) == 1)
+       if (rte_kvargs_count(kvlist, VIRTIO_USER_ARG_PATH) == 1) {
                ret = rte_kvargs_process(kvlist, VIRTIO_USER_ARG_PATH,
                                         &get_string_arg, &path);
                if (ret < 0) {
@@ -350,8 +350,8 @@ virtio_user_pmd_devinit(const char *name, const char *params)
                                     VIRTIO_USER_ARG_PATH);
                        goto end;
                }
-       else {
-               PMD_INIT_LOG(ERR, "arg %s is mandatory for virtio-user\n",
+       else {
+               PMD_INIT_LOG(ERR, "arg %s is mandatory for virtio_user\n",
                          VIRTIO_USER_ARG_QUEUE_SIZE);
                goto end;
        }
@@ -405,7 +405,7 @@ virtio_user_pmd_devinit(const char *name, const char *params)
 
        eth_dev = virtio_user_eth_dev_alloc(name);
        if (!eth_dev) {
-               PMD_INIT_LOG(ERR, "virtio-user fails to alloc device");
+               PMD_INIT_LOG(ERR, "virtio_user fails to alloc device");
                goto end;
        }