From b18f40d974ffc33f3703d46bfe42d6fa2f844a01 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 27 May 2026 17:58:01 +0900 Subject: internal/kobject: pass action kind for range Useful for handling most uevents. Signed-off-by: Ophestra --- cmd/earlyinit/uevent.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cmd/earlyinit/uevent.go') diff --git a/cmd/earlyinit/uevent.go b/cmd/earlyinit/uevent.go index 0ab134cf..64f548ba 100644 --- a/cmd/earlyinit/uevent.go +++ b/cmd/earlyinit/uevent.go @@ -2,12 +2,12 @@ package main import ( "context" - "log" "time" "hakurei.app/fhs" "hakurei.app/internal/report" "hakurei.app/internal/uevent" + "hakurei.app/message" ) // newRejectColdboot returns a function to be called on every subsequent pending @@ -56,6 +56,7 @@ func newRejectColdboot() func() bool { // consume continuously consumes events from conn with retries. func consume( ctx context.Context, + msg message.Msg, r *report.Reporter, conn *uevent.Conn, uuid uevent.UUID, @@ -67,7 +68,7 @@ func consume( coldboot := true retry: if dispatchErr := conn.Consume(ctx, fhs.Sys, &uuid, events, coldboot, func(path string) { - log.Println("coldboot visited", path) + msg.Verbose("coldboot visited", path) }, func(err error) bool { if _, ok := err.(uevent.NeedsColdboot); ok && !nextColdboot() { r.Dispatch( -- cgit v1.3.1