[PATCH] Remove a couple Error() instances left behind by 09dbfcb0ad7b6c8
Jeremy Huddleston
jeremyhu at apple.com
Mon Oct 24 20:56:44 PDT 2011
Thanks. Sorry for missing those.
Reviewed-by: Jeremy Huddleston <jeremyhu at apple.com>
On Oct 24, 2011, at 8:41 PM, Alan Coopersmith wrote:
> Two instances found in the SIOCGIFCONF code for listing network interfaces.
>
> Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
> ---
> os/access.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/os/access.c b/os/access.c
> index b7b1927..f31626d 100644
> --- a/os/access.c
> +++ b/os/access.c
> @@ -528,7 +528,7 @@ DefineSelf (int fd)
> ifn.lifn_family = AF_UNSPEC;
> ifn.lifn_flags = 0;
> if (ioctl (fd, SIOCGLIFNUM, (char *) &ifn) < 0)
> - Error ("Getting interface count");
> + ErrorF ("Getting interface count: %s\n", strerror(errno));
> if (len < (ifn.lifn_count * sizeof(struct lifreq))) {
> len = ifn.lifn_count * sizeof(struct lifreq);
> bufptr = malloc(len);
> @@ -558,7 +558,7 @@ DefineSelf (int fd)
> #endif
>
> if (ifioctl (fd, IFC_IOCTL_REQ, (pointer) &ifc) < 0)
> - Error ("Getting interface configuration (4)");
> + ErrorF ("Getting interface configuration (4): %s\n", strerror(errno));
>
> cplim = (char *) IFC_IFC_REQ + IFC_IFC_LEN;
>
> --
> 1.7.3.2
>
More information about the xorg-devel
mailing list