Skip to content

Commit

Permalink
Merge pull request #696 from jonjohnsonjr/warnf
Browse files Browse the repository at this point in the history
Use Warnf over WARNING
  • Loading branch information
imjasonh authored Sep 19, 2023
2 parents 4495533 + e121ed1 commit 6dc84e8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/build/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ func generateSharedObjectNameDeps(pc *PackageBuild, generated *config.Dependenci
sonames, err := ef.DynString(elf.DT_SONAME)
// most likely SONAME is not set on this object
if err != nil {
pc.Logger.Printf("WARNING: library %s lacks SONAME", path)
pc.Logger.Warnf("library %s lacks SONAME", path)
return nil
}

Expand Down Expand Up @@ -509,7 +509,7 @@ func generateSharedObjectNameDeps(pc *PackageBuild, generated *config.Dependenci

libs, err := ef.ImportedLibraries()
if err != nil {
pc.Logger.Printf("WTF: ImportedLibraries() returned error: %v", err)
pc.Logger.Warnf("WTF: ImportedLibraries() returned error: %v", err)
return nil
}

Expand Down Expand Up @@ -537,7 +537,7 @@ func generateSharedObjectNameDeps(pc *PackageBuild, generated *config.Dependenci
sonames, err := ef.DynString(elf.DT_SONAME)
// most likely SONAME is not set on this object
if err != nil {
pc.Logger.Printf("WARNING: library %s lacks SONAME", path)
pc.Logger.Warnf("library %s lacks SONAME", path)
return nil
}

Expand Down Expand Up @@ -566,7 +566,7 @@ func generateSharedObjectNameDeps(pc *PackageBuild, generated *config.Dependenci

logFile, err := os.Create(fmt.Sprintf("%s.%s", pc.Build.DependencyLog, pc.Arch))
if err != nil {
pc.Logger.Printf("WARNING: Unable to open dependency log: %v", err)
pc.Logger.Warnf("Unable to open dependency log: %v", err)
}
defer logFile.Close()

Expand Down Expand Up @@ -614,7 +614,7 @@ func generatePkgConfigDeps(pc *PackageBuild, generated *config.Dependencies) err

pkg, err := pkgconfig.Load(filepath.Join(pc.WorkspaceSubdir(), path))
if err != nil {
pc.Logger.Printf("WARNING: Unable to load .pc file (%s) using pkgconfig: %v", path, err)
pc.Logger.Warnf("Unable to load .pc file (%s) using pkgconfig: %v", path, err)
return nil
}

Expand Down

0 comments on commit 6dc84e8

Please sign in to comment.