]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/sys-linux.c
add missing parameter to a warn call
[ppp.git] / pppd / sys-linux.c
index 5f40b06d36a965c69dc6de66603f1169e7d41917..d630bca14fab4f864aa2599701bb15619a9f6c61 100644 (file)
@@ -578,7 +578,7 @@ static int make_ppp_unit()
        ifunit = req_unit;
        x = ioctl(ppp_dev_fd, PPPIOCNEWUNIT, &ifunit);
        if (x < 0 && req_unit >= 0 && errno == EEXIST) {
-               warn("Couldn't allocate PPP unit %d as it is already in use");
+               warn("Couldn't allocate PPP unit %d as it is already in use", req_unit);
                ifunit = -1;
                x = ioctl(ppp_dev_fd, PPPIOCNEWUNIT, &ifunit);
        }