Re: [PATCH v1] mptfusion: Use snprintf() instead of open coded divisions

2018-01-16 Thread Martin K. Petersen
Andy, > Numbers up to 100 snprintf() prints without using a division. > Besides that the code looks more readable. Applied to 4.16/scsi-queue (despite not really being a fan of cleaning up dead code). Thanks! -- Martin K. Petersen Oracle Linux Engineering

[PATCH v1] mptfusion: Use snprintf() instead of open coded divisions

2018-01-15 Thread Andy Shevchenko
Numbers up to 100 snprintf() prints without using a division. Besides that the code looks more readable. Signed-off-by: Andy Shevchenko --- drivers/message/fusion/mptctl.c | 25 +++-- 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/drivers/message/fusion/mptctl