Skip to content

Commit 4a19bb0

Browse files
flamenco, program: fix new authority log
1 parent 8b80cbc commit 4a19bb0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
50a43157201d0aff1fa70babe616712efaf58ea7
1+
9ed535ed2c9cb125525748f6f7e0613cabfaa7c4

src/flamenco/runtime/program/fd_bpf_loader_program.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1746,7 +1746,11 @@ process_loader_upgradeable_instruction( fd_exec_instr_ctx_t * instr_ctx ) {
17461746
}
17471747

17481748
/* Max msg_sz: 16 - 2 + 45 = 59 < 127 => we can use printf */
1749-
fd_log_collector_printf_dangerous_max_127( instr_ctx, "New authority %s", FD_BASE58_ENC_32_ALLOCA( new_authority ) );
1749+
if( new_authority ) {
1750+
fd_log_collector_printf_dangerous_max_127( instr_ctx, "New authority Some(%s)", FD_BASE58_ENC_32_ALLOCA( new_authority ) );
1751+
} else {
1752+
fd_log_collector_printf_dangerous_max_127( instr_ctx, "New authority None" );
1753+
}
17501754

17511755
/* implicit drop of account */
17521756

0 commit comments

Comments
 (0)