Re: [PATCH] patch for 2.4.19-pre8 nfsroot.c to compile

Kevin P. Fleming (kevin@labsysgrp.com)
Thu, 23 May 2002 16:05:06 -0700


Doh! Here's a corrected patch (other places in the kernel use %u instead of
%d, so that's what I used):

--- linux/fs/nfs/nfsroot.c Thu May 23 12:04:17 2002
+++ linux-nfsroot/fs/nfs/nfsroot.c Thu May 23 16:02:29 2002
@@ -343,8 +343,8 @@
{
struct sockaddr_in sin;

- printk(KERN_NOTICE "Looking up port of RPC %d/%d on %s\n",
- program, version, in_ntoa(servaddr));
+ printk(KERN_NOTICE "Looking up port of RPC %d/%d on %u.%u.%u.%u\n",
+ program, version, NIPQUAD(servaddr));
set_sockaddr(&sin, servaddr, 0);
return rpc_getport_external(&sin, program, version, proto);
}

----- Original Message -----
From: "Dan Kegel" <dank@kegel.com>
To: "Kevin P. Fleming" <kevin@labsysgrp.com>; <linux-kernel@vger.kernel.org>
Sent: Thursday, May 23, 2002 03:32 PM
Subject: re: [PATCH] patch for 2.4.19-pre8 nfsroot.c to compile

<snip>

> Er, shouldn't you change the %s to a %d.%d.%d.%d?
> - Dan
>
>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/