From owner-freebsd-current@FreeBSD.ORG Fri Sep 30 00:01:13 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 71AA11065670; Fri, 30 Sep 2011 00:01:13 +0000 (UTC) (envelope-from lacombar@gmail.com) Received: from mail-ww0-f42.google.com (mail-ww0-f42.google.com [74.125.82.42]) by mx1.freebsd.org (Postfix) with ESMTP id D1DDE8FC17; Fri, 30 Sep 2011 00:01:12 +0000 (UTC) Received: by wwn22 with SMTP id 22so22251wwn.1 for ; Thu, 29 Sep 2011 17:01:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=4aNOXuuNR5t2GlPw91ncSopuDERM9PPi87UlsQoPcmc=; b=naB9NvMBwIJlsbroFUdbUmEOiQZclfM7pBWesNjjZTknqcQD/bSFMGl/RSOiAvz4nd BGW5nCBN/AG74Kn+3Jt6hHztg760uDrhQHtEOMdoVjiADZyjGCkWHbf1VboMiUl9Ysba f9DF4obSZQrF0UI4cad380RjLHmk122Fw6wfU= MIME-Version: 1.0 Received: by 10.227.199.209 with SMTP id et17mr1771608wbb.36.1317340871695; Thu, 29 Sep 2011 17:01:11 -0700 (PDT) Received: by 10.180.103.33 with HTTP; Thu, 29 Sep 2011 17:01:11 -0700 (PDT) In-Reply-To: References: <4E811FF7.7010607@a1poweruser.com> <4E8126D3.5020407@FreeBSD.org> <4E812DB7.3000302@FreeBSD.org> <20110928081514.GA5077@jh> Date: Thu, 29 Sep 2011 20:01:11 -0400 Message-ID: From: Arnaud Lacombe To: Craig Rodrigues Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Jaakko Heinonen , freebsd-current@freebsd.org Subject: Re: bin/160979: 9.0 burncd error caused by change to cd0 from acd0 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2011 00:01:13 -0000 Hi, On Thu, Sep 29, 2011 at 6:20 PM, Craig Rodrigues w= rote: > On Wed, Sep 28, 2011 at 1:15 AM, Jaakko Heinonen wrote: >> >> I think that using the FEATURE() macro and feature_present(3) might be >> more appropriate for this. >> >> Thanks. >> -- >> Jaakko >> > > Oh, OK. =A0I was unfamiliar with these API's because they are new in Free= BSD 8. :) > How about the attached patch? --- usr.sbin/burncd/burncd.c (revision 225368) +++ usr.sbin/burncd/burncd.c (working copy) @@ -82,6 +82,15 @@ int block_size =3D 0, block_type =3D 0, cdopen =3D 0, dvdrw =3D 0; const char *dev, *env_speed; + if (feature_present("ata_cam")) { + printf("\nATA_CAM option is enabled in kernel.\n" + "Install the sysutils/cdrtools port and use cdrecord " + "instead.\n\n" maybe could you avoid the line break here, this makes the sentence un-grepable. You are breaking the 80-char limit anyway with the URL. - Arnaud + "Please refer to:\n" + "http://www.freebsd.org/doc/handbook/creating-cds.html#CDRECORD\n"); + exit(1); > > -- > Craig Rodrigues > rodrigc@crodrigues.org > > _______________________________________________ > 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= " >