cmd/mkinitfs: configure log to print milliseconds

Useful for timing each step of generating the initramfs without having
to add a bunch of calls to the "time func" function
This commit is contained in:
Clayton Craft
2023-03-01 22:57:53 -08:00
parent bd239c0365
commit 31ab72edbc

View File

@@ -47,6 +47,8 @@ func main() {
return
}
log.Default().SetFlags(log.Lmicroseconds)
deviceinfoFile := "/etc/deviceinfo"
if exists, err := misc.Exists(deviceinfoFile); !exists {
log.Printf("NOTE: %q not found, this file is required by mkinitfs.\n", deviceinfoFile)