comparison src/msg.cpp @ 314:6bf6b60a9751

remove debug print code
author Carl Byington <carl@five-ten-sg.com>
date Wed, 26 May 2010 20:30:35 -0700
parents 0f19cd173eab
children 3e6cdd543857
comparison
equal deleted inserted replaced
313:0f19cd173eab 314:6bf6b60a9751
74 if (!contents) return; 74 if (!contents) return;
75 size_t term = ((tag & 0x0000ffff) == 0x001e) ? 1 : 75 size_t term = ((tag & 0x0000ffff) == 0x001e) ? 1 :
76 ((tag & 0x0000ffff) == 0x001f) ? 2 : 0; // null terminator 76 ((tag & 0x0000ffff) == 0x001f) ? 2 : 0; // null terminator
77 vector<char> n(50); 77 vector<char> n(50);
78 snprintf(&n[0], n.size(), "__substg1.0_%08X", tag); 78 snprintf(&n[0], n.size(), "__substg1.0_%08X", tag);
79 fprintf(stdout, "dumping string property %08X size %d with data %s\n", tag, (int)size, contents);
80 GsfOutput* dst = gsf_outfile_new_child(out, &n[0], false); 79 GsfOutput* dst = gsf_outfile_new_child(out, &n[0], false);
81 gsf_output_write(dst, size, (const guint8*)contents); 80 gsf_output_write(dst, size, (const guint8*)contents);
82 if (term) { 81 if (term) {
83 memset(&n[0], 0, term); 82 memset(&n[0], 0, term);
84 gsf_output_write(dst, term, (const guint8*)&n[0]); 83 gsf_output_write(dst, term, (const guint8*)&n[0]);