Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

gcc-plugins: latent_entropy: Fix typo (args -> argc) in plugin description

Fix the typo in the plugin description comment. Clearly, "argc" should
be used.

Signed-off-by: Konstantin Runov <runebone1@gmail.com>
Link: https://lore.kernel.org/r/20231030094508.245432-1-runebone1@gmail.com
Signed-off-by: Kees Cook <keescook@chromium.org>

authored by

Konstantin Runov and committed by
Kees Cook
782ce431 1ee60356

+2 -2
+2 -2
scripts/gcc-plugins/latent_entropy_plugin.c
··· 17 17 * if (argc <= 1) 18 18 * printf("%s: no command arguments :(\n", *argv); 19 19 * else 20 - * printf("%s: %d command arguments!\n", *argv, args - 1); 20 + * printf("%s: %d command arguments!\n", *argv, argc - 1); 21 21 * } 22 22 * 23 23 * after: ··· 47 47 * // perturb_local_entropy() 48 48 * } else { 49 49 * local_entropy ^= 3896280633962944730; 50 - * printf("%s: %d command arguments!\n", *argv, args - 1); 50 + * printf("%s: %d command arguments!\n", *argv, argc - 1); 51 51 * } 52 52 * 53 53 * // latent_entropy_execute() 4.