Fix types for VFS error printing

Ref #2793
This commit is contained in:
Emery Hemingway 2018-04-26 16:38:41 +02:00 committed by Christian Helmuth
parent 87e41ef47e
commit 29c08d4751

View File

@ -97,7 +97,7 @@ static inline void print(Genode::Output &output, Vfs::Directory_service::Stat_re
static inline void print(Genode::Output &output, Vfs::Directory_service::Unlink_result const &r)
{
#define CASE_PRINT(x) \
case Vfs::File_io_service::Unlink_result::x: output.out_string(#x); break
case Vfs::Directory_service::Unlink_result::x: output.out_string(#x); break
switch (r) {
CASE_PRINT(UNLINK_OK);
@ -113,7 +113,7 @@ static inline void print(Genode::Output &output, Vfs::Directory_service::Unlink_
static inline void print(Genode::Output &output, Vfs::Directory_service::Rename_result const &r)
{
#define CASE_PRINT(x) \
case Vfs::File_io_service::Rename_result::x: output.out_string(#x); break
case Vfs::Directory_service::Rename_result::x: output.out_string(#x); break
switch (r) {
CASE_PRINT(RENAME_OK);