Re: [PATCH] scsi: qedi: fix build error without DEBUG_FS

From: Arnd Bergmann
Date: Thu Mar 02 2017 - 09:57:35 EST


On Thu, Mar 2, 2017 at 1:10 PM, Arnd Bergmann <arnd@xxxxxxxx> wrote:

>
> - QEDI_INFO(qedi_dbg, QEDI_LOG_DEBUGFS, "do_not_recover=%d\n",
> - do_not_recover);
> + QEDI_INFO(qedi_dbg, QEDI_LOG_DEBUGFS, "qedi_do_not_recover=%d\n",
> + qedi_do_not_recover);

> - QEDI_INFO(qedi_dbg, QEDI_LOG_DEBUGFS, "do_not_recover=%d\n",
> - do_not_recover);
> + QEDI_INFO(qedi_dbg, QEDI_LOG_DEBUGFS, "qedi_do_not_recover=%d\n",
> + qedi_do_not_recover);
> return 0;
> }

> - { "do_not_recover", qedi_dbg_do_not_recover_ops},
> + { "qedi_do_not_recover", qedi_dbg_do_not_recover_ops},
> { "io_trace", NULL },
> { NULL, NULL }

>
> - cnt = sprintf(buffer, "do_not_recover=%d\n", do_not_recover);
> + cnt = sprintf(buffer, "qedi_do_not_recover=%d\n", qedi_do_not_recover);
> cnt = min_t(int, count, cnt - *ppos);

I just noticed that my search&replace went a little too far, I should not have
touched the instances within strings. Will resend.

Arnd