Module: sems
Branch: master
Commit: 703b1226d3ab574c79afae484d9595913d74943e
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=703b1226d3ab574c79afae484d9595913d74943e

Author: Raphael Coeffic <[email protected]>
Committer: Raphael Coeffic <[email protected]>
Date:   Thu Apr 12 09:39:35 2012 +0200

b/f: fixes parse_next_hop.cpp (20abfdc1c02ffcd98267e205a44059a02e6af1c8)

- replaced fprintf() statements through DBG().
- added #include "log.h"

---

 core/sip/parse_next_hop.cpp |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/core/sip/parse_next_hop.cpp b/core/sip/parse_next_hop.cpp
index 588f903..f855357 100644
--- a/core/sip/parse_next_hop.cpp
+++ b/core/sip/parse_next_hop.cpp
@@ -1,6 +1,7 @@
 #include <stdio.h>
 #include "parse_next_hop.h"
 #include "parse_common.h"
+#include "log.h"
 
 int parse_next_hop(const cstring& next_hop,
                   list<host_port>& dest_list)
@@ -85,9 +86,7 @@ int parse_next_hop(const cstring& next_hop,
        break;
       default:
        // syntax error
-       fprintf(stderr,
-               "error: unexpected character '%c' in IPL_HOST_SEP state.\n",
-               *c);
+       DBG("error: unexpected character '%c' in IPL_HOST_SEP state.\n",*c);
        return -1;
       }
       break;
@@ -103,9 +102,7 @@ int parse_next_hop(const cstring& next_hop,
        break;
       default:
        if(*c < '0' && *c > '9'){
-         fprintf(stderr,
-                 "error: unexpected character '%c' in IPL_PORT state.\n",
-                 *c);
+         DBG("error: unexpected character '%c' in IPL_PORT state.\n",*c);
          return -1;
        }
        hp.port = hp.port*10 + (*c - '0');

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to