[PATCH] SMPP debug messages fix

"Simon Beale" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Hi

Please find attached a patch to fix SMPP debug messages so that they come
out in hex when they say they're coming out in hex! :)

Simon
hexfixes.diff (application/octet-stream, 1.2 KB)
diff -ur kannel-snapshot-orig/gw/smsc_smpp.c kannel-snapshot-fixes/gw/smsc_smpp.c
--- kannel-snapshot-orig/gw/smsc_smpp.c	Fri Mar 22 11:57:41 2002
+++ kannel-snapshot-fixes/gw/smsc_smpp.c	Wed Apr 10 11:08:58 2002
@@ -549,7 +549,7 @@
 		       pdu->u.submit_sm.sequence_number);
 	} else if (pdu->u.submit_sm_resp.command_status != 0)
 	{
-	    error(0, "SMPP: SMSC returned error code 0x%08lu "
+	    error(0, "SMPP: SMSC returned error code 0x%08lx "
 		     "in response to submit_sm.",
 		     pdu->u.submit_sm_resp.command_status);
 	    reason = smpp_status_to_smscconn_failure_reason(
@@ -560,7 +560,7 @@
  	    {
  		Octstr *reply;
  		
- 		reply = octstr_format("0x%08lu",pdu->u.submit_sm_resp.command_status);
+ 		reply = octstr_format("0x%08lx",pdu->u.submit_sm_resp.command_status);
  		/* generate DLR */
  		info(0,"creating DLR message");
  		dlrmsg = msg_create(sms);
@@ -607,7 +607,7 @@
  	    {
  		Octstr *reply;
  		
- 		reply = octstr_format("0x%08lu",pdu->u.submit_sm_resp.command_status);
+ 		reply = octstr_format("0x%08lx",pdu->u.submit_sm_resp.command_status);
  
  		dlrmsg = dlr_find(octstr_get_cstr(smpp->conn->id), 
  		    octstr_get_cstr(tmp), /* smsc message id */
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.