Adding upstream version 4.00~pre61+dfsg.
[syslinux-debian/hramrach.git] / com32 / gpllib / disk / error.c
blobfe4722e10a6d6b689da641da956f470c2cb52186
1 /* ----------------------------------------------------------------------- *
3 * Copyright 2009 Pierre-Alexandre Meyer
5 * This file is part of Syslinux, and is made available under
6 * the terms of the GNU General Public License version 2.
8 * ----------------------------------------------------------------------- */
10 #include <stdio.h>
11 #include <string.h>
12 #include <disk/errno_disk.h>
14 /**
15 * get_error - decode a disk error status
16 * @s: Preallocated buffer
18 * Fill @buffer_ptr with the last errno_disk
19 **/
20 void get_error(const char *s)
22 fprintf(stderr, "%s: error %d\n", s, errno_disk);