--- nono/lib/object.cpp 2026/04/29 17:04:31 1.1.1.2 +++ nono/lib/object.cpp 2026/04/29 17:04:37 1.1.1.4 @@ -1,6 +1,7 @@ // // nono -// Copyright (C) 2018 isaki@NetBSD.org +// Copyright (C) 2020 nono project +// Licensed under nono-license.txt // #include "object.h" @@ -48,9 +49,9 @@ Object::vputmsg(const char *fmt, va_list int len; // デバイス名だけ生表示されても分かりづらいので括弧でもつけておく - len = snprintf(buf, sizeof(buf), "(%s) ", devname); + len = snprintf(buf, sizeof(buf), "(%s) ", devname.c_str()); vsnprintf(buf + len, sizeof(buf) - len, fmt, ap); - gLogger->Write(buf); + gLogger.Write(buf); } // ログ出力 (可変引数) @@ -82,16 +83,8 @@ Object::vputlog(const char *fmt, va_list (int)(vt % 1000)); len += snprintf(buf + len, sizeof(buf) - len, "%08x %s ", - gMPU->GetPPC(), devname); + gMPU->GetPPC(), devname.c_str()); vsnprintf(buf + len, sizeof(buf) - len, fmt, ap); - gLogger->Write(buf); -} - -// モニタースクリーンを更新する。 -bool -Object::MonitorUpdate() -{ - // モニタースクリーンなし - return false; + gLogger.Write(buf); }