]> xenbits.xensource.com Git - unikraft/unikraft.git/commitdiff
lib/*: Use `UK_WARN_STUBBED()`
authorSimon Kuenzer <simon.kuenzer@neclab.eu>
Mon, 25 May 2020 01:53:53 +0000 (03:53 +0200)
committerUnikraft <monkey@unikraft.io>
Fri, 30 Apr 2021 14:23:40 +0000 (14:23 +0000)
Replaces the occurrences of `WARN_STUBBED()` to `UK_WARN_STUBBED()`.

Signed-off-by: Simon Kuenzer <simon.kuenzer@neclab.eu>
Reviewed-by: Razvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Pull-Request: #172

lib/posix-process/process.c
lib/uktime/time.c
lib/uktime/timer.c
lib/vfscore/main.c
lib/vfscore/pipe.c

index f5a2c4f257246a5cdbadfa6bbca3001ddd438893..7c80ffcf4dcacb382f2d418a2464a8277ae6ec09 100644 (file)
@@ -344,6 +344,6 @@ default:
 
 int prctl(int option __unused, ...)
 {
-       WARN_STUBBED();
+       UK_WARN_STUBBED();
        return 0;
 }
index 8fa30ab60c8fb39e7ef1e5b7298842982f2a8257..1947caa3433b519a25939ebd8d641ae2afd67c31 100644 (file)
@@ -184,6 +184,6 @@ UK_SYSCALL_R_DEFINE(int, times, struct tm *, buf)
 int setitimer(int which __unused, const struct itimerval *new_value __unused,
                struct itimerval *old_value __unused)
 {
-       WARN_STUBBED();
+       UK_WARN_STUBBED();
        return 0;
 }
index e246f055cc62ff85f41d4f6273df360d147f7a34..5e59f2ef451d6c44c607d64f821fc277132394cf 100644 (file)
@@ -40,14 +40,14 @@ int timer_create(clockid_t clockid __unused,
                struct sigevent *__restrict sevp __unused,
                timer_t *__restrict timerid __unused)
 {
-       WARN_STUBBED();
+       UK_WARN_STUBBED();
        errno = ENOTSUP;
        return -1;
 }
 
 int timer_delete(timer_t timerid __unused)
 {
-       WARN_STUBBED();
+       UK_WARN_STUBBED();
        errno = ENOTSUP;
        return -1;
 }
@@ -57,7 +57,7 @@ int timer_settime(timer_t timerid __unused,
                const struct itimerspec *__restrict new_value __unused,
                struct itimerspec *__restrict old_value __unused)
 {
-       WARN_STUBBED();
+       UK_WARN_STUBBED();
        errno = ENOTSUP;
        return -1;
 }
@@ -65,14 +65,14 @@ int timer_settime(timer_t timerid __unused,
 int timer_gettime(timer_t timerid __unused,
                struct itimerspec *curr_value __unused)
 {
-       WARN_STUBBED();
+       UK_WARN_STUBBED();
        errno = ENOTSUP;
        return -1;
 }
 
 int timer_getoverrun(timer_t timerid __unused)
 {
-       WARN_STUBBED();
+       UK_WARN_STUBBED();
        errno = ENOTSUP;
        return -1;
 }
index 2f30e04922a120f3c3f8ca626bee142d78e3a5f3..6d7db0e735686638541e2690ceaf21b5021e9af5 100644 (file)
@@ -47,6 +47,7 @@
 #include <vfscore/file.h>
 #include <vfscore/mount.h>
 #include <vfscore/fs.h>
+#include <uk/print.h>
 #include <uk/errptr.h>
 #include <uk/ctors.h>
 #include <uk/trace.h>
@@ -2229,20 +2230,20 @@ UK_TRACEPOINT(trace_vfs_fchown_ret, "");
 int fchown(int fd __unused, uid_t owner __unused, gid_t group __unused)
 {
        trace_vfs_fchown(fd, owner, group);
-       WARN_STUBBED();
+       UK_WARN_STUBBED();
        trace_vfs_fchown_ret();
        return 0;
 }
 
 int chown(const char *path __unused, uid_t owner __unused, gid_t group __unused)
 {
-       WARN_STUBBED();
+       UK_WARN_STUBBED();
        return 0;
 }
 
 int lchown(const char *path __unused, uid_t owner __unused, gid_t group __unused)
 {
-       WARN_STUBBED();
+       UK_WARN_STUBBED();
        return 0;
 }
 
@@ -2358,7 +2359,7 @@ fs_noop(void)
 
 int chroot(const char *path __unused)
 {
-       WARN_STUBBED();
+       UK_WARN_STUBBED();
        errno = ENOSYS;
        return -1;
 }
index be0696780f6e8cebecb733602075729570b0ecd3..302eac50f2eeb5e96656677720992967020b547c 100644 (file)
@@ -594,7 +594,7 @@ int pipe2(int pipefd[2], int flags)
 /* TODO maybe find a better place for this when it will be implemented */
 int mkfifo(const char *path __unused, mode_t mode __unused)
 {
-       WARN_STUBBED();
+       UK_WARN_STUBBED();
        errno = ENOTSUP;
        return -1;
 }