Skip to content

Commit

Permalink
swift: Minor log fix
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Apr 11, 2024
1 parent e602ea9 commit 1478f46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions swift/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,17 @@ private func testCcall() {
print("Testing r2pipe Ccall method")
if let r2p = R2Pipe("#!ccall") {
if let str = r2p.cmdSync("?V") {
log("http-sync", str)
log("ccall-sync", str)
} else {
print("ERROR: Ccall Sync Call failed")
}
r2p.cmdSync("o /bin/ls")
r2p.cmd("pi 5 @ entry0", closure: {
(str: String?) in
if let s = str {
log("http-async", s)
log("ccall-async", s)
} else {
log("error", "network")
log("error", "ccall")
}
exit(0)
})
Expand Down

0 comments on commit 1478f46

Please sign in to comment.