`ukconsole` replaces the use of the platform-provided print
functions so `devfs` should use `ukconsole` too.
Signed-off-by: Thassilo Schulze <thassilo@unikraft.io>
Approved-by: Simon Kuenzer <simon@unikraft.io>
Reviewed-by: Simon Kuenzer <simon@unikraft.io>
Reviewed-by: Michalis Pappas <michalis@unikraft.io>
GitHub-Closes: #1464
config LIBDEVFS_DEV_STDOUT
bool "Register stdout device"
default y if LIBDEVFS_AUTOMOUNT
+ select LIBUKCONSOLE
default n
endif
#include <uk/print.h>
#include <vfscore/uio.h>
#include <devfs/device.h>
-#include <uk/plat/console.h>
+#include <uk/console.h>
#ifdef CONFIG_LIBDEVFS_DEV_STDOUT
#define DEV_STDOUT_NAME "stdout"
static int __write_fn(void *dst __unused, void *src, size_t *cnt)
{
- int ret = ukplat_coutk(src, *cnt);
+ int ret = uk_console_out(src, *cnt);
if (ret < 0)
/* TODO: remove -1 when vfscore switches to negative