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:
@@ -47,6 +47,8 @@ func main() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log.Default().SetFlags(log.Lmicroseconds)
|
||||||
|
|
||||||
deviceinfoFile := "/etc/deviceinfo"
|
deviceinfoFile := "/etc/deviceinfo"
|
||||||
if exists, err := misc.Exists(deviceinfoFile); !exists {
|
if exists, err := misc.Exists(deviceinfoFile); !exists {
|
||||||
log.Printf("NOTE: %q not found, this file is required by mkinitfs.\n", deviceinfoFile)
|
log.Printf("NOTE: %q not found, this file is required by mkinitfs.\n", deviceinfoFile)
|
||||||
|
Reference in New Issue
Block a user