Changeset 745 for trunk/server/source3/lib/tallocmsg.c
- Timestamp:
- Nov 27, 2012, 4:43:17 PM (13 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 581,587,591,594,597,600,615,618,740
- Property svn:mergeinfo changed
-
trunk/server/source3/lib/tallocmsg.c
r414 r745 2 2 samba -- Unix SMB/CIFS implementation. 3 3 Copyright (C) 2001, 2002 by Martin Pool 4 4 5 5 This program is free software; you can redistribute it and/or modify 6 6 it under the terms of the GNU General Public License as published by 7 7 the Free Software Foundation; either version 3 of the License, or 8 8 (at your option) any later version. 9 9 10 10 This program is distributed in the hope that it will be useful, 11 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 13 GNU General Public License for more details. 14 14 15 15 You should have received a copy of the GNU General Public License 16 16 along with this program. If not, see <http://www.gnu.org/licenses/>. … … 18 18 19 19 #include "includes.h" 20 #include "messages.h" 20 21 21 22 /** … … 52 53 } 53 54 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 54 72 sprintf_append(state->mem_ctx, &state->s, &state->len, &state->buflen, 55 73 "%*s%-30s contains %6lu bytes in %3lu blocks (ref %d)\n", … … 74 92 75 93 SMB_ASSERT(msg_type == MSG_REQ_POOL_USAGE); 76 94 77 95 DEBUG(2,("Got POOL_USAGE\n")); 78 96 … … 91 109 return; 92 110 } 93 111 94 112 messaging_send_buf(msg_ctx, src, MSG_POOL_USAGE, 95 113 (uint8 *)state.s, strlen(state.s)+1);
Note:
See TracChangeset
for help on using the changeset viewer.