X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Fwrapper%2Frandom.c;h=0c20815df7f4b343c5f03d8b06d9294f44055e43;hb=756a020cce15ab4ae515051c469437713ad6515d;hp=63a309882da1c60dcb10d795f03e379b94a73986;hpb=cc87d2b4fa9348da830b0da09db1ee6653e0d758;p=lttng-modules.git diff --git a/src/wrapper/random.c b/src/wrapper/random.c index 63a30988..0c20815d 100644 --- a/src/wrapper/random.c +++ b/src/wrapper/random.c @@ -8,11 +8,12 @@ */ #include +#include /* boot_id depends on sysctl */ #if defined(CONFIG_SYSCTL) -#include +#include #include #include #include @@ -31,7 +32,7 @@ int wrapper_get_bootid(char *bootid) if (IS_ERR(file)) return PTR_ERR(file); - len = kernel_read(file, bootid, BOOT_ID_LEN - 1, &file->f_pos); + len = lttng_kernel_read(file, bootid, BOOT_ID_LEN - 1, &file->f_pos); if (len != BOOT_ID_LEN - 1) { ret = -EINVAL; goto end;