vfio: platform: Make printed error messages more consistent
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 10 Apr 2018 14:54:11 +0000 (16:54 +0200)
committerAlex Williamson <alex.williamson@redhat.com>
Fri, 8 Jun 2018 16:24:23 +0000 (10:24 -0600)
  - Capitalize the first word of error messages,
  - Unwrap statements that fit on a single line,
  - Use "VFIO" instead of "vfio" as the error message prefix.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Acked-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/platform/vfio_platform_common.c

index aa9e792..b60bb53 100644 (file)
@@ -630,8 +630,7 @@ static int vfio_platform_of_probe(struct vfio_platform_device *vdev,
        ret = device_property_read_string(dev, "compatible",
                                          &vdev->compat);
        if (ret)
-               pr_err("VFIO: cannot retrieve compat for %s\n",
-                       vdev->name);
+               pr_err("VFIO: Cannot retrieve compat for %s\n", vdev->name);
 
        return ret;
 }
@@ -673,7 +672,7 @@ int vfio_platform_probe_common(struct vfio_platform_device *vdev,
 
        ret = vfio_platform_get_reset(vdev);
        if (ret && vdev->reset_required) {
-               pr_err("vfio: no reset function found for device %s\n",
+               pr_err("VFIO: No reset function found for device %s\n",
                       vdev->name);
                return ret;
        }