]> git.ozlabs.org Git - ppp.git/commitdiff
add missing parameter to a warn call
authorPaul Mackerras <paulus@samba.org>
Thu, 12 Sep 2002 22:32:32 +0000 (22:32 +0000)
committerPaul Mackerras <paulus@samba.org>
Thu, 12 Sep 2002 22:32:32 +0000 (22:32 +0000)
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) {
        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);
        }
                ifunit = -1;
                x = ioctl(ppp_dev_fd, PPPIOCNEWUNIT, &ifunit);
        }