[util] Replace kutil with util

Now that kutil has no kernel-specific code in it anymore, it can
actually be linked to by anything, so I'm renaming it 'util'.

Also, I've tried to unify the way that the system libraries from
src/libraries are #included using <> instead of "".

Other small change: util::bip_buffer got a spinlock to guard against
state corruption.
This commit is contained in:
Justin C. Miller
2022-01-03 00:03:29 -08:00
parent 5f88f5ed02
commit cd9b85b555
68 changed files with 231 additions and 203 deletions

View File

@@ -5,8 +5,8 @@
#include <stdarg.h>
#include <stdint.h>
#include "kutil/bip_buffer.h"
#include "kutil/spinlock.h"
#include <util/bip_buffer.h>
#include <util/spinlock.h>
namespace log {
@@ -110,8 +110,8 @@ private:
uint8_t m_sequence;
kutil::bip_buffer m_buffer;
kutil::spinlock m_lock;
util::bip_buffer m_buffer;
util::spinlock m_lock;
static logger *s_log;
static const char *s_level_names[static_cast<unsigned>(level::max)];
@@ -129,6 +129,6 @@ extern log::logger &g_logger;
namespace logs {
#define LOG(name, lvl) extern const log::area_t name;
#include "j6/tables/log_areas.inc"
#include <j6/tables/log_areas.inc>
#undef LOG
} // namespace logs