]> git.ozlabs.org Git - yaboot.git/blobdiff - include/fs.h
Commit yaboot 1.3.5-pre1
[yaboot.git] / include / fs.h
index 3ec59281bfbbb76ed65c7d2a21ad38eae441a7ed..6aad90e2587bc43ce2d3f656dfbbc0d9a078d1b1 100644 (file)
@@ -24,6 +24,8 @@
 #include "partition.h"
 #include "file.h"
 
+int fserrorno;
+
 struct fs_t {
        const char* name;
 
@@ -45,26 +47,7 @@ struct fs_t {
 extern const struct fs_t *fs_of;
 extern const struct fs_t *fs_of_netboot;
 
-const struct fs_t *fs_open( struct boot_file_t *file, const char *dev_name,
-                            struct partition_t *part, const char *file_name );
-
-#if DEBUG
-# define DEBUG_ENTER prom_printf( "--> %s\n", __PRETTY_FUNCTION__ );
-# define DEBUG_LEAVE(str) \
-    prom_printf( "<-- %s - %s\n", __PRETTY_FUNCTION__, #str );
-# define DEBUG_F(fmt, args...)\
-{\
-    prom_printf( "    %s - ", __PRETTY_FUNCTION__ );\
-    prom_printf( fmt, ## args );\
-}
-# define DEBUG_OPEN DEBUG_F( "dev=%s, part=0x%08lx (%d), file_name=%s\n",\
-                             dev_name, part, part ? part->part_number : -1,\
-                             file_name);
-#else
-#define DEBUG_ENTER
-#define DEBUG_LEAVE(x)
-#define DEBUG_F(fmt, args...)
-#define DEBUG_OPEN
-#endif
+const struct fs_t *fs_open(struct boot_file_t *file, const char *dev_name,
+                         struct partition_t *part, const char *file_name);
 
 #endif