mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-11 13:22:33 +00:00
rump: write less to the log
Remove calls to the Genode log functions that were done unconditionally or according to a static verbosity flag. Ref #4032
This commit is contained in:
parent
74d826d1ad
commit
fd0a4e78c8
repos/dde_rump/src/lib
@ -26,8 +26,6 @@ enum {
|
||||
MAX_VIRTUAL_MEMORY = (sizeof(void *) == 4 ? 256UL : 4096UL) * 1024 * 1024
|
||||
};
|
||||
|
||||
static bool verbose = false;
|
||||
|
||||
/* upcalls to rump kernel */
|
||||
struct rumpuser_hyperup _rump_upcalls;
|
||||
|
||||
@ -202,7 +200,6 @@ int rumpuser_getparam(const char *name, void *buf, size_t buflen)
|
||||
|
||||
/* convert to string */
|
||||
Genode::snprintf((char *)buf, buflen, "%zu", rump_ram);
|
||||
Genode::log("asserting rump kernel ", rump_ram / 1024, " KB of RAM");
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -285,10 +282,6 @@ int rumpuser_malloc(size_t len, int alignment, void **memp)
|
||||
int align = alignment ? Genode::log2(alignment) : 0;
|
||||
*memp = allocator()->alloc(len, align);
|
||||
|
||||
if (verbose)
|
||||
Genode::log("ALLOC: p: ", *memp, ", s: ", len, ", a: ", align, " ", alignment);
|
||||
|
||||
|
||||
return *memp ? 0 : -1;
|
||||
}
|
||||
|
||||
@ -298,9 +291,6 @@ void rumpuser_free(void *mem, size_t len)
|
||||
Genode::Mutex::Guard guard(alloc_mutex());
|
||||
|
||||
allocator()->free(mem, len);
|
||||
|
||||
if (verbose)
|
||||
Genode::warning("FREE: p: ", mem, ", s: ", len);
|
||||
}
|
||||
|
||||
|
||||
|
@ -441,19 +441,6 @@ class Vfs::Rump_file_system : public File_system
|
||||
Genode::error("Mounting '",fs_type,"' file system failed (",errno,")");
|
||||
throw Genode::Exception();
|
||||
}
|
||||
|
||||
Genode::log(fs_type," file system mounted");
|
||||
|
||||
struct statvfs stats;
|
||||
int err = rump_sys_statvfs1("/", &stats, ST_WAIT);
|
||||
if (err == 0) {
|
||||
double factor = 1.0 / (1<<30);
|
||||
double available = factor * stats.f_bsize * stats.f_bavail;
|
||||
double total = factor * stats.f_bsize * stats.f_blocks;
|
||||
|
||||
Genode::log("Space available: ", available, " GiB / ", total, " GiB");
|
||||
Genode::log("Nodes available: ", stats.f_favail, "/", stats.f_files);
|
||||
}
|
||||
}
|
||||
|
||||
/***************************
|
||||
@ -890,10 +877,7 @@ class Rump_factory : public Vfs::File_system_factory
|
||||
struct rlimit rlim { ~0U, ~0U };
|
||||
if (rump_sys_getrlimit(RLIMIT_NOFILE, &rlim) == 0) {
|
||||
rlim.rlim_cur = rlim.rlim_max;
|
||||
if (rump_sys_setrlimit(RLIMIT_NOFILE, &rlim) == 0) {
|
||||
Genode::log("increased Rump open file"
|
||||
" limit to ", rlim.rlim_max);
|
||||
}
|
||||
rump_sys_setrlimit(RLIMIT_NOFILE, &rlim);
|
||||
}
|
||||
|
||||
/* start syncing */
|
||||
|
Loading…
x
Reference in New Issue
Block a user