Changeset 4682
- Timestamp:
- 02/22/07 18:01:38 (2 years ago)
- Files:
-
- libwired/trunk/libwired/p7/wi-p7-message.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
libwired/trunk/libwired/p7/wi-p7-message.c
r4679 r4682 165 165 wi_hash_t *fields; 166 166 wi_enumerator_t *enumerator; 167 wi_string_t *description, * field_name;167 wi_string_t *description, *xml_string, *field_name; 168 168 169 169 description = wi_string_init_with_format(wi_string_alloc(), WI_STR("<%@ %p>{name = %@, serialization = %@"), … … 177 177 wi_data_with_bytes_no_copy(p7_message->binary_buffer, p7_message->binary_size, false)); 178 178 } else { 179 wi_string_append_format(description, WI_STR(", xml = %@, fields = (\n"), 180 p7_message->xml_string); 179 if(p7_message->xml_string) 180 xml_string = p7_message->xml_string; 181 else 182 xml_string = wi_string_with_bytes(p7_message->xml_buffer, p7_message->xml_length); 183 184 wi_string_append_format(description, WI_STR(", xml = \"%@\", fields = (\n"), 185 xml_string); 181 186 } 182 187 … … 185 190 186 191 while((field_name = wi_enumerator_next_data(enumerator))) { 187 wi_string_append_format(description, WI_STR(" %@ = %@\n"),188 field_name, wi_hash_data_for_key(fields, field_name));192 wi_string_append_format(description, WI_STR(" %@ = %@\n"), 193 field_name, wi_hash_data_for_key(fields, field_name)); 189 194 } 190 195
