Skip to content

Commit

Permalink
fix log
Browse files Browse the repository at this point in the history
  • Loading branch information
xtaci committed Jul 3, 2024
1 parent 1255da1 commit bda93c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -427,12 +427,12 @@ func main() {
if config.QPP {
minSeedLength := qpp.QPPMinimumSeedLength(8)
if len(config.Key) < minSeedLength {
log.Println("QPP Warning: key size %d, required %d bytes at least", len(config.Key), minSeedLength)
log.Printf("QPP Warning: 'key' has size of %d bytes, required %d bytes at least", len(config.Key), minSeedLength)
}

minPads := qpp.QPPMinimumPads(8)
if config.QPPCount < minPads {
log.Println("QPP Warning: QPPCount %d, required %d at least", config.QPPCount, minPads)
log.Printf("QPP Warning: QPPCount %d, required %d at least", config.QPPCount, minPads)
}
}

Expand Down
4 changes: 2 additions & 2 deletions server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -426,12 +426,12 @@ func main() {
if config.QPP {
minSeedLength := qpp.QPPMinimumSeedLength(8)
if len(config.Key) < minSeedLength {
log.Println("QPP Warning: key size %d, required %d bytes at least", len(config.Key), minSeedLength)
log.Printf("QPP Warning: 'key' has size of %d bytes, required %d bytes at least", len(config.Key), minSeedLength)
}

minPads := qpp.QPPMinimumPads(8)
if config.QPPCount < minPads {
log.Println("QPP Warning: QPPCount %d, required %d at least", config.QPPCount, minPads)
log.Printf("QPP Warning: QPPCount %d, required %d at least", config.QPPCount, minPads)
}
}
// parameters check
Expand Down

0 comments on commit bda93c7

Please sign in to comment.