Article View: es.comp.os.linux.programacion
Article #17656Re: printk no implementada
From: LaPerla
Date: Tue, 07 Dec 1999 00:00
Date: Tue, 07 Dec 1999 00:00
54 lines
2307 bytes
2307 bytes
Ignacio Arenaza wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > >>>>> "LaPerla" == LaPerla <jaipoch@mx3.redestb.es> writes: > > LaPerla> Hola, estoy usando la funcion printk y sprintf para > LaPerla> escribir un peque�o programa, pero al compilar siempre me > LaPerla> da este warning el gcc: > > LaPerla> warning:implicit declaration of function > LaPerla> 'printk_R1b7d4074' > > printk _SOLO_ se debe usar dentro del nucleo (drivers, etc), no en > programas de usuario. Por eso no te aparece. > > Usa printf que es lo suyo. > > Saludos. I�aki. > > - -- > Linux Registered User #44369 > Si este mensaje no esta firmado con PGP/GPG, entonces no es mio. > If this message is not PGP/GPG signed, then it's not mine. > Get PGP/GPG Keys at http://personales.jet.es/inaki.arenaza/pgpkey.html > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.0 (GNU/Linux) > Comment: Processed by Mailcrypt 3.5.4 and Gnu Privacy Guard > > iD8DBQE4TRxBZXLnGT1HLgcRAk8HAJ4nV03jHKsLOoBaJwAfV020a7FEbQCeP1iF > ZCFKPruHt631Wb2dYN8AdEA= > =LfXn > -----END PGP SIGNATURE----- Probado esta con printf, mi sorpresa es cuando me vuelve a poner warning: implicit declaration of function 'printf' y con sprintf warning: implicit declaration of function 'sprintf_R3c2c5af5' por tanto no parece ser un problema de la instruccion en si; sino de algo que podria ser: la biblioteca o no se. Por cierto las opciones de compilacion son: gcc -Wall -DMODULE -D__KERNEL__ -DLINUX -c prog.c Otra cosa, que diferencia hay entre imprimir con printf o printk, �puede imprimir lo mismo printf que printk?, es que no encuentro informacion sobre el segundo. Gracias de nuevo
Technical Details
Message-ID:
<384D32D0.5131E6F3@mx3.redestb.es>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<384C970F.351A8990@mx3.redestb.es> <874sduyfuk.fsf@eb2ebu.ampr.org>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: f86c8,cabb8455e30bcba7 X-Google-Attributes: gidf86c8,public From: LaPerla <jaipoch@mx3.redestb.es> Subject: Re: printk no implementada Date: 1999/12/07 Message-ID: <384D32D0.5131E6F3@mx3.redestb.es> X-Deja-AN: 557738391 Content-Transfer-Encoding: 8bit References: <384C970F.351A8990@mx3.redestb.es> <874sduyfuk.fsf@eb2ebu.ampr.org> X-Accept-Language: es-ES, en Content-Type: text/plain; charset=iso-8859-1 Organization: Iddeo - Retevisi�n Mime-Version: 1.0 Newsgroups: es.comp.os.linux.programacion