summaryrefslogtreecommitdiff
path: root/rust/examples
diff options
context:
space:
mode:
Diffstat (limited to 'rust/examples')
-rw-r--r--rust/examples/high_level_il.rs2
-rw-r--r--rust/examples/medium_level_il.rs2
-rw-r--r--rust/examples/simple.rs2
-rw-r--r--rust/examples/type_printer.rs2
4 files changed, 4 insertions, 4 deletions
diff --git a/rust/examples/high_level_il.rs b/rust/examples/high_level_il.rs
index d57509da..ddc8f08d 100644
--- a/rust/examples/high_level_il.rs
+++ b/rust/examples/high_level_il.rs
@@ -16,7 +16,7 @@ fn main() {
println!("Function count: {}", bv.functions().len());
for func in &bv.functions() {
- println!("{}:", func.symbol().full_name());
+ println!("{:?}:", func.symbol().full_name());
let Ok(il) = func.high_level_il(true) else {
continue;
diff --git a/rust/examples/medium_level_il.rs b/rust/examples/medium_level_il.rs
index 61c3a330..543a0856 100644
--- a/rust/examples/medium_level_il.rs
+++ b/rust/examples/medium_level_il.rs
@@ -16,7 +16,7 @@ fn main() {
println!("Function count: {}", bv.functions().len());
for func in &bv.functions() {
- println!("{}:", func.symbol().full_name());
+ println!("{:?}:", func.symbol().full_name());
let Ok(il) = func.medium_level_il() else {
continue;
diff --git a/rust/examples/simple.rs b/rust/examples/simple.rs
index f41cbf34..c6065d48 100644
--- a/rust/examples/simple.rs
+++ b/rust/examples/simple.rs
@@ -17,7 +17,7 @@ fn main() {
println!("Function count: {}", bv.functions().len());
for func in &bv.functions() {
- println!("{}:", func.symbol().full_name());
+ println!("{:?}:", func.symbol().full_name());
for basic_block in &func.basic_blocks() {
// TODO : This is intended to be refactored to be more nice to work with soon(TM)
for addr in basic_block.as_ref() {
diff --git a/rust/examples/type_printer.rs b/rust/examples/type_printer.rs
index ea9c6a4d..846e1a09 100644
--- a/rust/examples/type_printer.rs
+++ b/rust/examples/type_printer.rs
@@ -35,5 +35,5 @@ fn main() {
TokenEscapingType::NoTokenEscapingType,
);
- println!("{}", printed_types.unwrap());
+ println!("{:?}", printed_types.unwrap());
}