Replace original blanks with "."
Reported-by: Marcello Carla' <marcello.carla@gmx.com>
Co-developed-by: Marcello Carla' <marcello.carla@gmx.com>
Fixes: fce79512a96a ("staging: gpib: Add LPVO DIY USB GPIB driver")
Signed-off-by: Dave Penkler <dpenkler@gmail.com>
---
drivers/staging/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c b/drivers/staging/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
index 47db17418a74..c30db3615f49 100644
--- a/drivers/staging/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
+++ b/drivers/staging/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
@@ -97,8 +97,8 @@ module_param(debug, int, 0644);
#define USB_GPIB_DEBUG_ON "\nIBDE\xAA\n"
#define USB_GPIB_SET_LISTEN "\nIBDT0\n"
#define USB_GPIB_SET_TALK "\nIBDT1\n"
-#define USB_GPIB_SET_LINES "\nIBDC\n"
-#define USB_GPIB_SET_DATA "\nIBDM\n"
+#define USB_GPIB_SET_LINES "\nIBDC.\n"
+#define USB_GPIB_SET_DATA "\nIBDM.\n"
#define USB_GPIB_READ_LINES "\nIBD?C\n"
#define USB_GPIB_READ_DATA "\nIBD?M\n"
#define USB_GPIB_READ_BUS "\nIBD??\n"
@@ -587,7 +587,7 @@ static int usb_gpib_command(gpib_board_t *board,
size_t *bytes_written)
{
int i, retval;
- char command[6] = "IBc\n";
+ char command[6]="IBc.\n";
DIA_LOG(1, "enter %p\n", board);
--
2.47.1
You're going to need to resend this. Run checkpatch.pl etc. On Wed, Dec 04, 2024 at 03:57:12PM +0100, Dave Penkler wrote: > Replace original blanks with "." > Take a look at how this look like on lore: https://lore.kernel.org/all/20241204145713.11889-4-dpenkler@gmail.com/ The subject is hard to see. It's better to think of it as the title instead of the first sentence. To be honest, I don't really understand this commit. Presumably this gets printed out or something? Can you cut a paste a few lines of before and after text to show us how it looks like? regards, dan carpenter
On Wed, Dec 04, 2024 at 03:57:12PM +0100, Dave Penkler wrote:
> Replace original blanks with "."
>
> Reported-by: Marcello Carla' <marcello.carla@gmx.com>
> Co-developed-by: Marcello Carla' <marcello.carla@gmx.com>
> Fixes: fce79512a96a ("staging: gpib: Add LPVO DIY USB GPIB driver")
> Signed-off-by: Dave Penkler <dpenkler@gmail.com>
> ---
> drivers/staging/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/staging/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c b/drivers/staging/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
> index 47db17418a74..c30db3615f49 100644
> --- a/drivers/staging/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
> +++ b/drivers/staging/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
> @@ -97,8 +97,8 @@ module_param(debug, int, 0644);
> #define USB_GPIB_DEBUG_ON "\nIBDE\xAA\n"
> #define USB_GPIB_SET_LISTEN "\nIBDT0\n"
> #define USB_GPIB_SET_TALK "\nIBDT1\n"
> -#define USB_GPIB_SET_LINES "\nIBDC\n"
> -#define USB_GPIB_SET_DATA "\nIBDM\n"
> +#define USB_GPIB_SET_LINES "\nIBDC.\n"
> +#define USB_GPIB_SET_DATA "\nIBDM.\n"
> #define USB_GPIB_READ_LINES "\nIBD?C\n"
> #define USB_GPIB_READ_DATA "\nIBD?M\n"
> #define USB_GPIB_READ_BUS "\nIBD??\n"
> @@ -587,7 +587,7 @@ static int usb_gpib_command(gpib_board_t *board,
> size_t *bytes_written)
> {
> int i, retval;
> - char command[6] = "IBc\n";
> + char command[6]="IBc.\n";
Did you run this through scripts/checkpatch.pl before sending it out?
Please always do so.
And what is the "." for? Why is this needed? Please explain that in
the changelog text.
thanks,
greg k-h
© 2016 - 2025 Red Hat, Inc.