diff --git a/dsp.c b/dsp.c
index 2dec37be1de7398453888547f0ebac678ed11ce5..db49efec43291147e8f31328243fd5bf13afb2e1 100755
--- a/dsp.c
+++ b/dsp.c
@@ -1457,7 +1457,7 @@ struct ast_frame *ast_dsp_process(struct ast_channel *chan, struct ast_dsp *dsp,
 			shortdata[x] = AST_ALAW(odata[x]);
 		break;
 	default:
-		ast_log(LOG_WARNING, "Inband DTMF is not supported on codec %s. Use RFC2833\n", ast_codec2str(af->subclass));
+		ast_log(LOG_WARNING, "Inband DTMF is not supported on codec %s. Use RFC2833\n", ast_getformatname(af->subclass));
 		return af;
 	}
 	silence = __ast_dsp_silence(dsp, shortdata, len, NULL);