All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: bluez-devel@lists.sourceforge.net
Cc: 322732-submitter@bugs.debian.org, 322732@bugs.debian.org,
	bluez-devel@lists.sf.net, control@bugs.debian.org
Subject: [Pkg-bluetooth-maintainers] Bug#322732: [Bluez-devel] more on this bug (was: rfcomm bind fails with obscure error message)
Date: Mon, 29 May 2006 15:16:21 +0200	[thread overview]
Message-ID: <1148908581.31689.35.camel@localhost> (raw)
In-Reply-To: <20060519204815.GA8424@esaurito.net>

Hi Filippo,

> > When the 'rfcomm' kernel module isn't compiled with CONFIG_BT_RFCOMM_TTY
> > enabled, 'rfcomm bind' will fail with an obscure error message, "Can't
> > create device: Operation not supported".  It does this when it's trying to
> > bind to a device in /dev.
> > 
> > Could this be changed to report something more useful, such as "Check
> > rfcomm.ko is compiled with TTY support"?
> 
> Hi,
> I agree with this bug and the ioctl is mostly likely to fail when there is no
> rfcomm tty support, here is my proposed patch:
> 
> --- rfcomm/main.c       (revision 154)
> +++ rfcomm/main.c       (working copy)
> @@ -172,8 +172,10 @@
>                         req.channel = 1;
>         }
> 
> -       if ((err = ioctl(ctl, RFCOMMCREATEDEV, &req)) < 0 )
> +       if ((err = ioctl(ctl, RFCOMMCREATEDEV, &req)) < 0 ){
>                 perror("Can't create device");
> +               fprintf(stderr, "Check RFCOMM TTY availabily");
> +    }
> 
>         return err;
>  }
> 
> comments? 

check for EOPNOTSUPP error code and only then print this error.

Regards

Marcel




_______________________________________________
Pkg-bluetooth-maintainers mailing list
Pkg-bluetooth-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-bluetooth-maintainers

  reply	other threads:[~2006-05-29 13:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-19 20:48 [Bluez-devel] more on this bug (was: rfcomm bind fails with obscure error message) Filippo Giunchedi
2006-05-29 13:16 ` Marcel Holtmann [this message]
2006-06-04 15:15   ` Bug#322732: [Pkg-bluetooth-maintainers] Bug#322732: " Filippo Giunchedi
2006-06-04 15:46     ` Bug#322732: [Bluez-devel] [Pkg-bluetooth-maintainers] Bug#322732: " Marcel Holtmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1148908581.31689.35.camel@localhost \
    --to=marcel@holtmann.org \
    --cc=322732-submitter@bugs.debian.org \
    --cc=322732@bugs.debian.org \
    --cc=bluez-devel@lists.sf.net \
    --cc=bluez-devel@lists.sourceforge.net \
    --cc=control@bugs.debian.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.