--- nono/host/hostdevice.cpp 2026/04/29 17:05:21 1.1.1.3 +++ nono/host/hostdevice.cpp 2026/04/29 17:05:30 1.1.1.4 @@ -12,7 +12,7 @@ #include "scheduler.h" // コンストラクタ -HostDevice::HostDevice(Device *parent_, int objid_) +HostDevice::HostDevice(Device *parent_, uint objid_) : inherited(objid_) { parent = parent_; @@ -110,6 +110,8 @@ HostDevice::SetAcceptCallback(DeviceCall void HostDevice::ThreadRun() { + SetThreadAffinityHint(AffinityClass::Light); + for (; exit_requested == false; ) { struct kevent kev; int r; @@ -202,11 +204,11 @@ HostDevice::putlogn(const char *fmt, ... int len; uint64 vt = scheduler->GetVirtTime(); - len = snprintf(buf, sizeof(buf), "%4d.%03d'%03d'%03d %s ", - (int)(vt / 1000 / 1000 / 1000), - (int)((vt / 1000 / 1000) % 1000), - (int)((vt / 1000) % 1000), - (int)(vt % 1000), + len = snprintf(buf, sizeof(buf), "%4u.%03u'%03u'%03u %s ", + (uint)(vt / 1000 / 1000 / 1000), + (uint)((vt / 1000 / 1000) % 1000), + (uint)((vt / 1000) % 1000), + (uint)(vt % 1000), GetName().c_str()); va_start(ap, fmt);