iio: pressure: zpa2326: Add newlines to logging macros
authorJoe Perches <joe@perches.com>
Wed, 5 Jul 2017 10:25:58 +0000 (03:25 -0700)
committerJonathan Cameron <jic23@kernel.org>
Thu, 6 Jul 2017 18:28:28 +0000 (19:28 +0100)
Add newlines to the macro definitions and use a more common style.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/pressure/zpa2326.c

index c92a95f9f52c21410ea9f372c3254530008914bd..ebfb1de7377ffb5b0c30cf3c23c61b0f7afcdddd 100644 (file)
@@ -141,14 +141,14 @@ struct zpa2326_private {
        struct regulator               *vdd;
 };
 
-#define zpa2326_err(_idev, _format, _arg...) \
-       dev_err(_idev->dev.parent, _format, ##_arg)
+#define zpa2326_err(idev, fmt, ...)                                    \
+       dev_err(idev->dev.parent, fmt "\n", ##__VA_ARGS__)
 
-#define zpa2326_warn(_idev, _format, _arg...) \
-       dev_warn(_idev->dev.parent, _format, ##_arg)
+#define zpa2326_warn(idev, fmt, ...)                                   \
+       dev_warn(idev->dev.parent, fmt "\n", ##__VA_ARGS__)
 
-#define zpa2326_dbg(_idev, _format, _arg...) \
-       dev_dbg(_idev->dev.parent, _format, ##_arg)
+#define zpa2326_dbg(idev, fmt, ...)                                    \
+       dev_dbg(idev->dev.parent, fmt "\n", ##__VA_ARGS__)
 
 bool zpa2326_isreg_writeable(struct device *dev, unsigned int reg)
 {