[gpm]2 questions about 1.20.0

Nico Schottelius nicos-mutt@pcsystems.de
Tue, 26 Feb 2002 17:32:02 +0100


--4Epv4kl9IRBfg3rk
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Mon, Feb 25, 2002 at 07:16:25PM -0500, Andrew Pimlott:
> > > > > Feb 23 16:51:46 pervalidus gpm[29033]: info: [/usr/local/src/gpm-=
1.20.0/src/gpn.c(363)]:
> > > > > Feb 23 16:51:46 pervalidus gpm[29033]: Started gpm successfully. =
Entered daemon mode.
>=20
> > Just wanted to have it easy to locate where an error comes from.
> > If you get an error, you can exactly trace it down to a position in gpms
> > source code.
>=20
> I think it's overkill, but at least people would probably prefer it
> on one line.  Or is it syslog that breaks the line?

No/yes:

syslog(LOG_INFO | LOG_USER, GPM_STRING_INFO);
vsyslog(LOG_INFO | LOG_USER, text, ap);

First reporting the line/kind of type (info/err/warn/debug) and then
the actual message. Was too lazy to put in together.

And I think most people will not even see that there are two lines in
the file because they don't pay attention to it.

Personally I like this way, because (as said) you can easily grep the
localtion of the error.=20
In fact, in case of INFO it's perhaps oversized. But in some cases
the last info message can help you to find out, after which code
segment gpm quit/break down.

=20
--=20
Nico Schottelius

Please send your messages pgp-signed or pgp-encrypted.
If you don't know what pgp is visit www.gnupg.org.
(public pgp key: ftp.schottelius.org/pub/familiy/nico/pgp-key)

--4Epv4kl9IRBfg3rk
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8e7iCtnlUggLJsX0RAvgpAJ9OgSpLtlKsOM140pohHS6ZV5dZDwCgmMxP
HZzfwdFUktKwuhmb4yxyJVE=
=PrrC
-----END PGP SIGNATURE-----

--4Epv4kl9IRBfg3rk--