Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 129789 - udev: find_free_number function produces warning message (sys-fs/udev-087)
Summary: udev: find_free_number function produces warning message (sys-fs/udev-087)
Status: RESOLVED DUPLICATE of bug 127815
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-13 04:09 UTC by Peter Hyman
Modified: 2006-04-13 04:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Hyman 2006-04-13 04:09:15 UTC
This error appears on every boot up. I am NOT sure if it is a problem, but the fact that the variable warn is set to 1, will cause this to occur every time. This error appears on the console just after udev starts up. The warning shows 

udevd [ process ]: find_free_numberis deprecated, will be removed and is unlikey to work correctly. Don't use it.

from udev_rules.c
/* finds the lowest positive device number such that <name>N isn't present in the udevdb
 * if <name> doesn't exist, 0 is returned, N otherwise */
static int find_free_number(const char *base, const char *devpath)
{
	char db_devpath[PATH_SIZE];
	char filename[PATH_SIZE];
	struct udevice *udev_db;
	int num = 0;
	static int warn = 1;

	if (warn) {
		err("%%e is deprecated, will be removed and is unlikey to work correctly. Don't use it.");
		warn = 0;
	}

Maybe this is an upstream issue?
----------------------------
peter@mars ~ $ sudo emerge info
Portage 2.0.54 (default-linux/x86/2005.0, gcc-3.4.5, glibc-2.3.5-r3, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 AMD Athlon(tm) XP 2800+
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/env.d"
CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer"
DISTDIR="/mnt/src/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo ftp://gentoo.mirrors.tds.net/gentoo ftp://206.75.217.180/"
MAKEOPTS="-j2"
PKGDIR="/mnt/src/portage/packages"
PORTAGE_TMPDIR="/mnt/src/var/tmp"
PORTDIR="/mnt/src/portage"
PORTDIR_OVERLAY="/mnt/src/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts artswrappersuid audiofile avi berkdb bitmap-fonts bzip2 cdr crypt cups curl dri dvd dvdr eds emboss encode esd exif expat fam flac foomaticdb fortran gd gdbm gif glut gmp gnome gpm gstreamer gtk gtk2 gtkhtml idn imagemagick imlib ipv6 isdnlog java jpeg lcms ldap libg++ libwww mad mikmod mng motif mp3 mpeg mysql ncurses nls offensive ogg oggvorbis opengl oss pam pcre pdflib perl png pppd python qt quicktime readline recode samba sdl slang spell ssl svga tcltk tcpd tiff truetype truetype-fonts type1-fonts udev usb vorbis win32codecs xine xml2 xmms xscreensaver xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-04-13 04:14:01 UTC

*** This bug has been marked as a duplicate of 127815 ***
Comment 2 Peter Hyman 2006-04-13 04:46:48 UTC
Are you sure it's a duplicate? The function echoing the warning was not mentioned in by 127815.