X-Git-Url: https://jxself.org/git/?p=carl9170fw.git;a=blobdiff_plain;f=tools%2Fsrc%2Fwol.c;h=f2bd51b2208f20e4eb488c27fc65eba6d1557236;hp=640380625e1ef5c1654f1f61d4556636eece7f96;hb=e017a914b2679d669e201cc76f812b641aa7eea3;hpb=3fe042ff62f66381315edd486d8f7ef0369e3e58 diff --git a/tools/src/wol.c b/tools/src/wol.c index 6403806..f2bd51b 100644 --- a/tools/src/wol.c +++ b/tools/src/wol.c @@ -25,10 +25,12 @@ #include #include +#include +#include + #include #include /* ETH_P_ALL */ #include /* sockaddr_ll */ -#include /* IFNAMSIZ */ static int monitor_init(const char *ifname) { @@ -187,7 +189,7 @@ int main(int argc, char **args) return EXIT_FAILURE; if (verbose) - fprintf(stdout, "Generating WOL packet for ["MAC_STR"].\n", MAC_ARG2(mac)); + fprintf(stdout, "Generating %d WOL packet for ["MAC_STR"].\n", num, MAC_ARG2(mac)); prepare_wol(wol_magic_tmpl, mac);