Skip to content

Commit 1adeade

Browse files
fix mbed scouting example
1 parent a80a5c9 commit 1adeade

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/mbed/z_scout.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ void fprintzid(FILE *stream, z_id_t zid) {
4444
void fprintwhatami(FILE *stream, z_whatami_t whatami) {
4545
z_view_string_t s;
4646
z_whatami_to_view_string(whatami, &s);
47-
fprintf(stream, "\"%.*s\"", (int)z_string_len(z_loan(s)), z_string_data(z_loan(s)));
47+
fprintf(stream, "\"%.*s\"", (int)z_string_len(z_view_string_loan(&s)), z_string_data(z_view_string_loan(&s)));
4848
}
4949

5050
void fprintlocators(FILE *stream, const z_loaned_string_array_t *locs) {

0 commit comments

Comments
 (0)