Fix error messages

This commit is contained in:
Vadim Vetrov 2025-01-03 03:24:37 +03:00
parent 43823cab57
commit 91e6825cb2
No known key found for this signature in database
GPG Key ID: E8A308689D7A73A5

View File

@ -578,11 +578,11 @@ int init_queue(int queue_num) {
ret = mnl_cb_run(buf, ret, 0, portid, queue_cb, &qdata); ret = mnl_cb_run(buf, ret, 0, portid, queue_cb, &qdata);
if (ret < 0) { if (ret < 0) {
lgerror(-EPERM, "mnl_cb_run"); lgerror(ret, "mnl_cb_run");
if (errno == EPERM) { if (ret == -EPERM) {
lgerror(-errno, "Probably another instance of youtubeUnblock with the same queue number is running\n"); lgerr("Probably another instance of youtubeUnblock with the same queue number is running\n");
} else { } else {
lgerror(-errno, "Make sure the nfnetlink_queue kernel module is loaded\n"); lgerr("Make sure the nfnetlink_queue kernel module is loaded\n");
} }
goto die; goto die;
} }