diff options
Diffstat (limited to 'contrib/syslinux/latest/com32/gpllib/disk/error.c')
-rw-r--r-- | contrib/syslinux/latest/com32/gpllib/disk/error.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/contrib/syslinux/latest/com32/gpllib/disk/error.c b/contrib/syslinux/latest/com32/gpllib/disk/error.c new file mode 100644 index 0000000..fe4722e --- /dev/null +++ b/contrib/syslinux/latest/com32/gpllib/disk/error.c @@ -0,0 +1,23 @@ +/* ----------------------------------------------------------------------- * + * + * Copyright 2009 Pierre-Alexandre Meyer + * + * This file is part of Syslinux, and is made available under + * the terms of the GNU General Public License version 2. + * + * ----------------------------------------------------------------------- */ + +#include <stdio.h> +#include <string.h> +#include <disk/errno_disk.h> + +/** + * get_error - decode a disk error status + * @s: Preallocated buffer + * + * Fill @buffer_ptr with the last errno_disk + **/ +void get_error(const char *s) +{ + fprintf(stderr, "%s: error %d\n", s, errno_disk); +} |