commit 17827a258af16a0e93c51c9d46195ab15ff41f7c
parent 68877ff8896d230a74416e2caa8a785f093bbeb3
Author: Gabriel G. de Brito <gabrielgbrito@icloud.com>
Date: Fri, 29 Dec 2023 22:11:28 -0300
Fixed warnings failling CI
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/debugger.go b/debugger.go
@@ -229,7 +229,7 @@ func ioCall(m machine.Machine, call *machine.Call, in *bufio.Reader) {
if call.Number == machine.SYS_READ {
addr := call.Arg1
size := call.Arg2
- fmt.Println("READ call for address 0x%x with %d bytes:", addr, size)
+ fmt.Printf("READ call for address 0x%x with %d bytes:\n", addr, size)
buf := make([]byte, size)
_, err := in.Read(buf)
if err != nil {
@@ -332,7 +332,7 @@ func debuggerBreakpoint(m machine.Machine, sym []assembler.DebuggerToken, breakp
var err error
addr, err = strconv.ParseUint(args[0], 0, 64)
if err != nil {
- fmt.Println("%v is not a number.\n", args[0])
+ fmt.Printf("%v is not a number.\n", args[0])
return
}
}