看板 FB_current 關於我們 聯絡資訊
--Apple-Mail-12--743014071 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii If malloc() fails in /sbin/sysctl, the error message is unhelpful. This = patch helps identify which sysctl entry is failing. --Apple-Mail-12--743014071 Content-Disposition: attachment; filename=sysctl.diff Content-Type: application/octet-stream; name="sysctl.diff" Content-Transfer-Encoding: 7bit Index: sbin/sysctl/sysctl.c =================================================================== --- sbin/sysctl/sysctl.c (revision 225262) +++ sbin/sysctl/sysctl.c (working copy) @@ -580,7 +580,7 @@ val = oval = malloc(j + 1); if (val == NULL) { - warnx("malloc failed"); + warnx("%s%s malloc failed %d %d", name, sep, j + 1, errno); return (1); } len = j; --Apple-Mail-12--743014071 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii -Andrew -------------------------------------------------- Andrew Boyer aboyer@averesystems.com --Apple-Mail-12--743014071 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" --Apple-Mail-12--743014071--