Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1713362
| From | Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v3 11/22] staging: ccree: fix line indentation and breaks |
| Date | 2017-08-17 00:10 +0200 |
| Message-ID | <ufeFH-4jg-1@gated-at.bofh.it> (permalink) |
| References | <ueDwt-6d6-3@gated-at.bofh.it> <ueDwv-6d6-25@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, Aug 15, 2017 at 09:26:39AM +0300, Gilad Ben-Yossef wrote:
> Fix wrong indentation and line breaks, including missing tabs,
> breaking lines longer then 80 char or wrongly broken.
>
> Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
> ---
> drivers/staging/ccree/ssi_driver.c | 107 +++++++++++++++++++++++--------------
> 1 file changed, 67 insertions(+), 40 deletions(-)
>
> diff --git a/drivers/staging/ccree/ssi_driver.c b/drivers/staging/ccree/ssi_driver.c
> index 81cb63d..0ce2f57 100644
> --- a/drivers/staging/ccree/ssi_driver.c
> +++ b/drivers/staging/ccree/ssi_driver.c
> @@ -87,27 +87,31 @@ void dump_byte_array(const char *name, const u8 *the_array, unsigned long size)
>
> ret = snprintf(line_buf, sizeof(line_buf), "%s[%lu]: ", name, size);
> if (ret < 0) {
> - SSI_LOG_ERR("snprintf returned %d . aborting buffer array dump\n", ret);
> + SSI_LOG_ERR
> + ("snprintf returned %d . aborting buffer array dump\n",
> + ret);
As Joe said, this is pretty bad. Just move "ret);" to the next line,
and then fix it up so that there are not SSI_LOG_ERR() macros and use
the normal in-kernel printing functions instead, then you will not get
this type of warning.
thanks,
greg k-h
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v3 11/22] staging: ccree: fix line indentation and breaks Gilad Ben-Yossef <gilad@benyossef.com> - 2017-08-15 08:30 +0200 Re: [PATCH v3 11/22] staging: ccree: fix line indentation and breaks Joe Perches <joe@perches.com> - 2017-08-15 08:50 +0200 Re: [PATCH v3 11/22] staging: ccree: fix line indentation and breaks Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-08-17 00:10 +0200
csiph-web