diff options
author | citats <citats@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-05-09 07:51:44 +0000 |
---|---|---|
committer | citats <citats@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-05-09 07:51:44 +0000 |
commit | 9bd61aa747cedeb161b46ca536312d8e569bfbf5 (patch) | |
tree | e02913e8cd2ec7f6236ac862e98d11dc9fd199ce /frame.c | |
parent | 7bfd090538d068ea86150b0a7a27d5b2bda1df39 (diff) |
More ast_strlen_zero changes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2930 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'frame.c')
-rwxr-xr-x | frame.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -17,6 +17,7 @@ #include <asterisk/options.h> #include <asterisk/cli.h> #include <asterisk/term.h> +#include <asterisk/utils.h> #include <stdlib.h> #include <unistd.h> #include <string.h> @@ -703,7 +704,7 @@ void ast_frame_dump(char *name, struct ast_frame *f, char *prefix) default: snprintf(ftype, sizeof(ftype), "Unknown Frametype '%d'", f->frametype); } - if (strlen(moreinfo)) + if (!ast_strlen_zero(moreinfo)) ast_verbose("%s [ TYPE: %s (%d) SUBCLASS: %s (%d) '%s' ] [%s]\n", term_color(cp, prefix, COLOR_BRMAGENTA, COLOR_BLACK, sizeof(cp)), term_color(cft, ftype, COLOR_BRRED, COLOR_BLACK, sizeof(cft)), |