Re: [PATCH] iio: gyro: bmg160: use __func__ in error message

From: Andy Shevchenko

Date: Mon Jun 08 2026 - 07:49:47 EST


On Sun, Jun 07, 2026 at 02:14:35PM +0000, Hungyu Lin wrote:
> Use __func__ instead of hardcoding the function name in the
> error message.

No, __func__ in non-debug messages means that the message itself is badly
written and/or not unique enough. Rather than use __func__ try to rephrase
message that it will be unique to this type of devices.

--
With Best Regards,
Andy Shevchenko