mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-05-12 20:42:20 +00:00
Also fix cdrom provider use of the new diskfs Signed-off-by: Itxaka <itxaka@spectrocloud.com> Signed-off-by: Itxaka <itxaka@spectrocloud.com> Co-authored-by: Itxaka <itxaka@spectrocloud.com>
24 lines
351 B
Go
Vendored
24 lines
351 B
Go
Vendored
// +build lz4debug
|
|
|
|
package lz4
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
"path/filepath"
|
|
"runtime"
|
|
)
|
|
|
|
const debugFlag = true
|
|
|
|
func debug(args ...interface{}) {
|
|
_, file, line, _ := runtime.Caller(1)
|
|
file = filepath.Base(file)
|
|
|
|
f := fmt.Sprintf("LZ4: %s:%d %s", file, line, args[0])
|
|
if f[len(f)-1] != '\n' {
|
|
f += "\n"
|
|
}
|
|
fmt.Fprintf(os.Stderr, f, args[1:]...)
|
|
}
|