Skip to content

Commit 73aec69

Browse files
Syboxez BlankSyboxez Blank
authored andcommitted
Fix command formatting and echo command before execution
1 parent 85dfd59 commit 73aec69

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gfx/video_crt_switch.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,8 @@ static void switch_res_crt(
335335
if (!ret)
336336
RARCH_ERR("[CRT]: SR failed to add mode\n");
337337

338-
snprintf(commandbuffer, sizeof(commandbuffer), "/usr/bin/sudo /usr/local/bin/swedid-root %d %d %d", srm.width, srm.height, srm.vfreq);
338+
snprintf(commandbuffer, sizeof(commandbuffer), "/usr/bin/sudo /usr/local/bin/swedid-root %d %d %f", srm.width, srm.height, srm.vfreq);
339+
printf("%s\n", commandbuffer);
339340
ret = system(commandbuffer);
340341

341342
if (!p_switch->kms_ctx && !ret)

0 commit comments

Comments
 (0)