gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/rtmp r9738: make debug messages more consi


From: rob
Subject: [Gnash-commit] /srv/bzr/gnash/rtmp r9738: make debug messages more consistant.
Date: Sun, 16 Nov 2008 16:25:40 -0700
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9738
committer: address@hidden
branch nick: rtmp
timestamp: Sun 2008-11-16 16:25:40 -0700
message:
  make debug messages more consistant.
modified:
  libnet/network.cpp
=== modified file 'libnet/network.cpp'
--- a/libnet/network.cpp        2008-11-12 17:00:58 +0000
+++ b/libnet/network.cpp        2008-11-16 23:25:40 +0000
@@ -803,11 +803,11 @@
        }
        
        if (_debug) {
-           log_debug (_("read %d bytes from fd %d from port %d"), ret, fd, 
_port);
+           log_debug (_("read %d bytes from fd #%d from port %d"), ret, fd, 
_port);
        }
 #if 0
        if (ret) {
-           log_debug (_("%s: Read packet data from fd %d (%d bytes): \n%s"),
+           log_debug (_("%s: Read packet data from fd #%d (%d bytes): \n%s"),
                       __FUNCTION__, fd, ret, hexify(buffer, ret, true));
        }
 #endif    
@@ -885,27 +885,27 @@
 
         // If interupted by a system call, try again
         if (ret == -1 && errno == EINTR) {
-            log_error (_("The socket for fd %d was interupted by a system 
call"), fd);
+            log_error (_("The socket for fd #%d was interupted by a system 
call"), fd);
         }
 
         if (ret == -1) {
-            log_error (_("The socket for fd %d was never available for 
writing"), fd);
+            log_error (_("The socket for fd #%d was never available for 
writing"), fd);
         }
 
         if (ret == 0) {
-            log_debug (_("The socket for fd %d timed out waiting to write"), 
fd);
+            log_debug (_("The socket for fd #%d timed out waiting to write"), 
fd);
            return 0;
         }
 
         ret = write(fd, bufptr, nbytes);
 
         if (ret == 0) {
-            log_error (_("Wrote zero out of %d bytes to fd %d: %s"), 
+            log_error (_("Wrote zero out of %d bytes to fd #%d: %s"), 
                nbytes, fd, strerror(errno));
             return ret;
         }
         if (ret < 0) {
-            log_error (_("Couldn't write %d bytes to fd %d: %s"), 
+            log_error (_("Couldn't write %d bytes to fd #%d: %s"), 
                nbytes, fd, strerror(errno));
             return ret;
         }
@@ -913,12 +913,12 @@
             bufptr += ret;
             if (ret != nbytes) {
                if (_debug) {
-                   log_debug (_("wrote %d bytes to fd %d, expected %d"),
+                   log_debug (_("wrote %d bytes to fd #%d, expected %d"),
                               ret, fd, nbytes);
                }
             } else {
                if (_debug) {
-                   log_debug (_("wrote %d bytes to fd %d for port %d"),
+                   log_debug (_("wrote %d bytes to fd #%d for port %d"),
                               ret, fd, _port);
                }
 //                return ret;
@@ -926,7 +926,7 @@
         }
 #if 0
        if (ret) {
-           log_debug (_("%s: Wrote packet data to fd %d: \n%s"),
+           log_debug (_("%s: Wrote packet data to fd #%d: \n%s"),
                       __FUNCTION__, fd, hexify(buffer, ret, true));
        }
 #endif    


reply via email to

[Prev in Thread] Current Thread [Next in Thread]