RPM Community Forums

Mailing List Message of <rpm-devel>

Re: [CVS] RPM: rpm/rpmdb/ rpmdb.c

From: Jeff Johnson <n3npq@mac.com>
Date: Fri 14 Dec 2007 - 13:40:23 CET
Message-Id: <ABAC4AF5-9705-4B3A-9B27-25D0A88C8EE1@mac.com>
Oops  thanks.

Longer term:

RPM has copious torrents  of debugging spew in order to simplify my  
remote support
tasks when I was flying solo in a foggy cloud with feathers as   
insturments.

These days perhaps a better paradigm is needed. No reasonable  
suggestion will
not be considered.

73 de Jeff

On Dec 14, 2007, at 5:21 AM, Ralf S. Engelschall wrote:

>   RPM Package Manager, CVS Repository
>   http://rpm5.org/cvs/
>    
> ______________________________________________________________________ 
> ______
>
>   Server: rpm5.org                         Name:   Ralf S. Engelschall
>   Root:   /v/rpm/cvs                       Email:  rse@rpm5.org
>   Module: rpm                              Date:   14-Dec-2007  
> 11:21:30
>   Branch: HEAD                             Handle: 2007121410212900
>
>   Modified files:
>     rpm/rpmdb               rpmdb.c
>
>   Log:
>     output debugging message only if we are really debugging
>
>   Summary:
>     Revision    Changes     Path
>     1.228       +3  -3      rpm/rpmdb/rpmdb.c
>    
> ______________________________________________________________________ 
> ______
>
>   patch -p0 <<'@@ .'
>   Index: rpm/rpmdb/rpmdb.c
>    
> ====================================================================== 
> ======
>   $ cvs diff -u -r1.227 -r1.228 rpmdb.c
>   --- rpm/rpmdb/rpmdb.c	14 Dec 2007 03:35:48 -0000	1.227
>   +++ rpm/rpmdb/rpmdb.c	14 Dec 2007 10:21:29 -0000	1.228
>   @@ -279,9 +279,9 @@
>    	dbiNTags++;
>        }
>
>   -for (dbix = 0; dbix < dbiNTags; dbix++)
>   -fprintf(stderr, "%4d %s[%u] 0x%x\n", dbix, dbiTags[dbix].str,  
> dbiTags[dbix].tag, dbiTags[dbix].tag);
>   -
>   +    if (_rpmdb_debug)
>   +        for (dbix = 0; dbix < dbiNTags; dbix++)
>   +            fprintf(stderr, "--> %4d %s[%u] 0x%x\n", dbix,  
> dbiTags[dbix].str, dbiTags[dbix].tag, dbiTags[dbix].tag);
>
>        if (dbiNTagsP != NULL)
>    	*dbiNTagsP = dbiNTags;
>   @@ .
> ______________________________________________________________________
> RPM Package Manager                                    http://rpm5.org
> CVS Sources Repository                                rpm-cvs@rpm5.org
Received on Fri Dec 14 13:41:20 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.