Ignore:
Timestamp:
Nov 27, 2012, 4:43:17 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.0

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/source3/lib/tallocmsg.c

    r414 r745  
    22   samba -- Unix SMB/CIFS implementation.
    33   Copyright (C) 2001, 2002 by Martin Pool
    4    
     4
    55   This program is free software; you can redistribute it and/or modify
    66   it under the terms of the GNU General Public License as published by
    77   the Free Software Foundation; either version 3 of the License, or
    88   (at your option) any later version.
    9    
     9
    1010   This program is distributed in the hope that it will be useful,
    1111   but WITHOUT ANY WARRANTY; without even the implied warranty of
    1212   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1313   GNU General Public License for more details.
    14    
     14
    1515   You should have received a copy of the GNU General Public License
    1616   along with this program.  If not, see <http://www.gnu.org/licenses/>.
     
    1818
    1919#include "includes.h"
     20#include "messages.h"
    2021
    2122/**
     
    5253        }
    5354
     55        if (strcmp(name, "char") == 0) {
     56                /*
     57                 * Print out the first 50 bytes of the string
     58                 */
     59                sprintf_append(state->mem_ctx, &state->s, &state->len,
     60                               &state->buflen,
     61                               "%*s%-30s contains %6lu bytes in %3lu blocks "
     62                               "(ref %d): %*s\n", depth*4, "",
     63                               name,
     64                               (unsigned long)talloc_total_size(ptr),
     65                               (unsigned long)talloc_total_blocks(ptr),
     66                               talloc_reference_count(ptr),
     67                               MIN(50, talloc_get_size(ptr)),
     68                               (char *)ptr);
     69                return;
     70        }
     71
    5472        sprintf_append(state->mem_ctx, &state->s, &state->len, &state->buflen,
    5573                       "%*s%-30s contains %6lu bytes in %3lu blocks (ref %d)\n",
     
    7492
    7593        SMB_ASSERT(msg_type == MSG_REQ_POOL_USAGE);
    76        
     94
    7795        DEBUG(2,("Got POOL_USAGE\n"));
    7896
     
    91109                return;
    92110        }
    93        
     111
    94112        messaging_send_buf(msg_ctx, src, MSG_POOL_USAGE,
    95113                           (uint8 *)state.s, strlen(state.s)+1);
Note: See TracChangeset for help on using the changeset viewer.