regfio: Use correct function names in debug information
authorMichael Hanselmann <public@hansmi.ch>
Sun, 17 Mar 2019 15:20:47 +0000 (16:20 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 2 Apr 2019 09:10:55 +0000 (09:10 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13840

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit aa6b355858a0d8b77bf49384e5329642add1a5ff)

source3/registry/regfio.c

index 7e323da9dababc6d8dcdf1b7cd96d850ae5f32c9..ebc586c50be138ae60bb087ed92596b995e6a507 100644 (file)
@@ -305,7 +305,7 @@ static bool prs_hbin_block( const char *desc, prs_struct *ps, int depth, REGF_HB
 {
        uint32_t block_size2;
 
-       prs_debug(ps, depth, desc, "prs_regf_block");
+       prs_debug(ps, depth, desc, "prs_hbin_block");
        depth++;
        
        if ( !prs_uint8s( True, "header", ps, depth, (uint8_t*)hbin->header, sizeof( hbin->header )) )
@@ -1019,7 +1019,7 @@ static bool hbin_prs_key( REGF_FILE *file, REGF_HBIN *hbin, REGF_NK_REC *nk )
        int depth = 0;
        REGF_HBIN *sub_hbin;
        
-       prs_debug(&hbin->ps, depth, "", "fetch_key");
+       prs_debug(&hbin->ps, depth, "", "prs_key");
        depth++;
 
        /* get the initial nk record */
@@ -1238,7 +1238,7 @@ out:
        ZERO_STRUCTP( rb );
        rb->fd = -1;
        
-       if ( !(rb->mem_ctx = talloc_init( "read_regf_block" )) ) {
+       if ( !(rb->mem_ctx = talloc_init( "regfio_open" )) ) {
                regfio_close( rb );
                return NULL;
        }