Format warning fixes, man page fixes

merge-requests/1/head
Mattias Ellert 2008-04-12 17:49:49 +00:00
rodzic eff4892c1c
commit 8196a0f471
5 zmienionych plików z 33 dodań i 26 usunięć

Wyświetl plik

@ -191,7 +191,7 @@ Markus Mertinat <Markus.Mertinat@Physik.Uni-Augsburg.DE>
Martijn van Oosterhout <kleptog@svana.org>
Matthew Duggan <stauff1@users.sourceforge.net>
Matthew Marjanovic <maddog@mir.com>
Mattias Ellert <mattias.ellert@tsl.uu.se>
Mattias Ellert <mattias.ellert@fysast.uu.se>
Max Vorobiev <pcwizard@yandex.ru>
Meino Christian Cramer <mccramer@s.netic.de>
Michael Herder <crapmail@nurfuerspam.de>

Wyświetl plik

@ -1,3 +1,8 @@
2008-02-20 Mattias Ellert <mattias.ellert@fysast.uu.se>
* backend/rts8891.c, backend/rts88xx_lib.c: fix format warning
* doc/sane-rts8891.man: man page fixes
* AUTHORS: e-mail update
2008-04-11 Julien Blache <jb@jblache.org>
* frontend/saned.c: announce the _sane-port._tcp service via mDNS
(Avahi) when running in standalone or debug mode. A separate

Wyświetl plik

@ -839,8 +839,8 @@ set_option_value (Rts8891_Scanner * s, int option, void *val,
{
s->val[option].wa = s->dev->model->gamma;
DBG (DBG_error0,
"set_option_value: not enough memory for %d bytes!\n",
256 * sizeof (SANE_Word));
"set_option_value: not enough memory for %lu bytes!\n",
(u_long) (256 * sizeof (SANE_Word)));
return SANE_STATUS_NO_MEM;
}

Wyświetl plik

@ -277,8 +277,8 @@ sanei_rts88xx_read_regs (SANE_Int devnum, SANE_Int start,
}
if (size != (size_t) length)
{
DBG (DBG_warn, "sanei_rts88xx_read_regs: read got only %d bytes\n",
size);
DBG (DBG_warn, "sanei_rts88xx_read_regs: read got only %lu bytes\n",
(u_long) size);
}
if (DBG_LEVEL >= DBG_io)
{
@ -478,8 +478,8 @@ sanei_rts88xx_write_mem (SANE_Int devnum, SANE_Int length, SANE_Int extra,
if ((status == SANE_STATUS_GOOD) && (size != (size_t) length + 4 + extra))
{
DBG (DBG_error,
"sanei_rts88xx_write_mem: only wrote %d bytes out of %d\n", size,
length + 4);
"sanei_rts88xx_write_mem: only wrote %lu bytes out of %d\n",
(u_long) size, length + 4);
status = SANE_STATUS_IO_ERROR;
}
return status;
@ -549,8 +549,8 @@ sanei_rts88xx_read_mem (SANE_Int devnum, SANE_Int length, SANE_Byte * value)
if (size != want)
{
DBG (DBG_error,
"sanei_rts88xx_read_mem: only read %d bytes out of %d\n", size,
want);
"sanei_rts88xx_read_mem: only read %lu bytes out of %lu\n",
(u_long) size, (u_long) want);
status = SANE_STATUS_IO_ERROR;
}
length -= size;
@ -832,7 +832,8 @@ sanei_rts88xx_read_data (SANE_Int devnum, SANE_Word * length,
DBG (DBG_error, "sanei_rts88xx_read_data: failed to read data\n");
return status;
}
DBG (DBG_io2, "sanei_rts88xx_read_data: read %d bytes\n", size);
DBG (DBG_io2, "sanei_rts88xx_read_data: read %lu bytes\n",
(u_long) size);
read += size;
}
@ -846,13 +847,14 @@ sanei_rts88xx_read_data (SANE_Int devnum, SANE_Word * length,
DBG (DBG_error, "sanei_rts88xx_read_data: failed to read data\n");
return status;
}
DBG (DBG_io2, "sanei_rts88xx_read_data: read %d bytes\n", remain);
DBG (DBG_io2, "sanei_rts88xx_read_data: read %lu bytes\n",
(u_long) remain);
read += remain;
}
/* update actual read length */
DBG (DBG_io, "sanei_rts88xx_read_data: read %d bytes, %d required\n",
read, *length);
DBG (DBG_io, "sanei_rts88xx_read_data: read %lu bytes, %d required\n",
(u_long) read, *length);
*length = read;
return status;
}

Wyświetl plik

@ -1,10 +1,10 @@
.\" .IX sane-rts8891
.TH "sane-rts8891" "5" "16 March 2008" "@PACKAGEVERSION@" "SANE Scanner Access Now Easy"
.SH "NAME"
sane\-rts8891 \- SANE backend for Umax Astra 4400/4450 and Hewlett-Packard Scanjet 4470c scanners
sane-rts8891 \- SANE backend for Umax Astra 4400/4450 and Hewlett-Packard Scanjet 4470c scanners
.SH "DESCRIPTION"
The
.B sane\-rts8891
.B sane-rts8891
library implements a SANE (Scanner Access Now Easy) backend that
provides access to scanner based on Realtek RTS8891 ASIC.
.PP
@ -32,14 +32,14 @@ maintainer or to the SANE mailing list.
Valid command line options and their syntax can be listed by using
.RS
scanimage \-\-help \-d rts8891
scanimage --help -d rts8891
.RE
.TP
.B Scan Mode Options
.TP
.B \-\-mode
.B --mode
selects the basic mode of operation of the scanner valid choices are
.I auto
.R ,
@ -53,7 +53,7 @@ Grayscale will produce 256 levels of gray (8 bits). Gray and Lineart mode are em
Color mode allows for over 16 million different colors produced from 24 bits of color information.
.TP
.B \-\-resolution
.B --resolution
selects the resolution for a scan. The horizontal and vertical resolutions are set
by the value of this option. Default value is 150 dpi, automatic value is 75 dpi.
The scanner is capable of the following resolutions for the specified option value:
@ -73,7 +73,7 @@ The scanner is capable of the following resolutions for the specified option val
.RE
.TP
.B \-\-preview
.B --preview
requests a preview scan. The resolution used for that scan is 75 dpi
and the scan area and the scan mode are as specified through their options,
or the default if not specified. The default and automatic value for preview mode is "no".
@ -82,8 +82,8 @@ or the default if not specified. The default and automatic value for preview mod
.B Image Enhancement Options
.TP
.B \-\-threshold
selects the minimum\-brightness to get a white point. The threshold is only used with Lineart mode scans.
.B --threshold
selects the minimum-brightness to get a white point. The threshold is only used with Lineart mode scans.
It is specified as a percentage in the range 0..100% (in steps of 1).
The default or automatic value of the threshold option is 50.
@ -128,11 +128,11 @@ is active only if custom-gamma is set to yes.
.B Utility Options
.TP
.B \-\-lamp\-on
.B --lamp-on
this advanced option switches the lamp on. It is a set only option.
.TP
.B \-\-lamp\-off
.B --lamp-off
this advanced option switches the lamp off. It is a set only option.
.SH "CONFIGURATION FILE"
@ -141,10 +141,10 @@ The configuration file @CONFIGDIR@/rts8891.conf contains only the usb device id
.SH "FILES"
.TP
.I @LIBDIR@/libsane\-rts8891.a
.I @LIBDIR@/libsane-rts8891.a
The static library implementing this backend.
.TP
.I @LIBDIR@/libsane\-rts8891.so
.I @LIBDIR@/libsane-rts8891.so
The shared library implementing this backend (present on systems that
support dynamic loading).
@ -182,7 +182,7 @@ https://alioth.debian.org/tracker/?atid=410366&group_id=30186&func=browse
.SH "SEE ALSO"
sane\-usb(5), scanimage(1), xscanimage(1), xsane(1), sane(7)
sane-usb(5), scanimage(1), xscanimage(1), xsane(1), sane(7)
.SH "AUTHOR"