• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* ----------------------------------------------------------------------- *
2  *
3  *   Copyright 2009 Pierre-Alexandre Meyer
4  *
5  *   This file is part of Syslinux, and is made available under
6  *   the terms of the GNU General Public License version 2.
7  *
8  * ----------------------------------------------------------------------- */
9 
10 #include <stdio.h>
11 #include <string.h>
12 #include <disk/errno_disk.h>
13 
14 /**
15  * get_error - decode a disk error status
16  * @s:	Preallocated buffer
17  *
18  * Fill @buffer_ptr with the last errno_disk
19  **/
get_error(const char * s)20 void get_error(const char *s)
21 {
22     fprintf(stderr, "%s: error %d\n", s, errno_disk);
23 }
24