omit extra \n at end of report() format strings
This commit is contained in:
@@ -258,7 +258,7 @@ PrivateData *p;
|
|||||||
if ((sscanf(size, "%dx%d", &w, &h) != 2) ||
|
if ((sscanf(size, "%dx%d", &w, &h) != 2) ||
|
||||||
(w <= 0) || (w > LCD_MAX_WIDTH) ||
|
(w <= 0) || (w > LCD_MAX_WIDTH) ||
|
||||||
(h <= 0) || (h > LCD_MAX_HEIGHT)) {
|
(h <= 0) || (h > LCD_MAX_HEIGHT)) {
|
||||||
report(RPT_WARNING, "IOWarrior: Cannot read size: %s. Using default value.\n", size);
|
report(RPT_WARNING, "IOWarrior: Cannot read size: %s. Using default value.", size);
|
||||||
sscanf(DEFAULT_SIZE, "%dx%d", &w, &h);
|
sscanf(DEFAULT_SIZE, "%dx%d", &w, &h);
|
||||||
}
|
}
|
||||||
p->width = w;
|
p->width = w;
|
||||||
@@ -274,14 +274,14 @@ PrivateData *p;
|
|||||||
/* Allocate framebuffer memory */
|
/* Allocate framebuffer memory */
|
||||||
p->framebuf =(unsigned char *) calloc(p->width * p->height, 1);
|
p->framebuf =(unsigned char *) calloc(p->width * p->height, 1);
|
||||||
if (p->framebuf == NULL) {
|
if (p->framebuf == NULL) {
|
||||||
report(RPT_ERR, "IOWarrior: unable to create framebuffer.\n");
|
report(RPT_ERR, "IOWarrior: unable to create framebuffer.");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Allocate and clear the buffer for incremental updates */
|
/* Allocate and clear the buffer for incremental updates */
|
||||||
p->backingstore =(unsigned char *) calloc(p->width * p->height, 1);
|
p->backingstore =(unsigned char *) calloc(p->width * p->height, 1);
|
||||||
if (p->backingstore == NULL) {
|
if (p->backingstore == NULL) {
|
||||||
report(RPT_ERR, "IOWarrior: unable to create lcd_buffer.\n");
|
report(RPT_ERR, "IOWarrior: unable to create lcd_buffer.");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -349,7 +349,7 @@ PrivateData *p;
|
|||||||
done:
|
done:
|
||||||
|
|
||||||
if (p->udh != NULL) {
|
if (p->udh != NULL) {
|
||||||
debug(RPT_DEBUG, "IOWarrior: opening device succeeded\n");
|
debug(RPT_DEBUG, "IOWarrior: opening device succeeded");
|
||||||
|
|
||||||
if (usb_set_configuration(p->udh, 1) < 0) {
|
if (usb_set_configuration(p->udh, 1) < 0) {
|
||||||
usb_close(p->udh);
|
usb_close(p->udh);
|
||||||
@@ -387,7 +387,7 @@ PrivateData *p;
|
|||||||
if (iowlcd_display_on_off(p->udh, 1, 0, 0) == IOW_ERROR)
|
if (iowlcd_display_on_off(p->udh, 1, 0, 0) == IOW_ERROR)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
report(RPT_DEBUG, "IOWarrior_init: done\n");
|
report(RPT_DEBUG, "IOWarrior_init: done");
|
||||||
|
|
||||||
/* clear screen */
|
/* clear screen */
|
||||||
IOWarrior_clear(drvthis);
|
IOWarrior_clear(drvthis);
|
||||||
|
|||||||
Reference in New Issue
Block a user