aboutsummaryrefslogtreecommitdiffstats
path: root/lib/find_bit.c
diff options
context:
space:
mode:
authorMarc Kleine-Budde <[email protected]>2023-01-31 16:10:54 +0000
committerMarc Kleine-Budde <[email protected]>2023-02-06 12:57:27 +0000
commit06742086a3d225cafa3ee9d7704bbfd28a0d01d4 (patch)
tree7680329ee56039324ba3bfdf711231fc5ce6dce0 /lib/find_bit.c
parentcan: bittiming: can_calc_bittiming(): clean up SJW handling (diff)
downloadkernel-06742086a3d225cafa3ee9d7704bbfd28a0d01d4.tar.gz
kernel-06742086a3d225cafa3ee9d7704bbfd28a0d01d4.zip
can: bittiming: can_calc_bittiming(): convert from netdev_err() to NL_SET_ERR_MSG_FMT()
Replace the netdev_err() by NL_SET_ERR_MSG_FMT() to better inform the user about the problem. While there, use %u to print unsigned values and improve error message a bit. In case of an error, return -EINVAL instead of -EDOM, this corresponds better to the actual meaning of the error value. Link: https://lore.kernel.org/all/[email protected] Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'lib/find_bit.c')
0 files changed, 0 insertions, 0 deletions