• Geert Uytterhoeven's avatar
    net/ipv4/ipconfig: Rejoin broken lines in console output · 6c1c36b0
    Geert Uytterhoeven authored
    Commit 09605cc1 ("net ipv4: use preferred log methods") replaced
    a few calls of pr_cont() after a console print without a trailing
    newline by pr_info(), causing lines to be split during IP
    autoconfiguration, like:
    
        .
        ,
         OK
        IP-Config: Got DHCP answer from 192.168.97.254,
        my address is 192.168.97.44
    
    Convert these back to using pr_cont(), so it prints again:
    
        ., OK
        IP-Config: Got DHCP answer from 192.168.97.254, my address is 192.168.97.44
    
    Absorb the printing of "my address ..." into the previous call to
    pr_info(), as there's no reason to use a continuation there.
    
    Convert one more pr_info() to print nameservers while we're at it.
    
    Fixes: 09605cc1 ("net ipv4: use preferred log methods")
    Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    6c1c36b0
ipconfig.c 39.6 KB