diff options
Diffstat (limited to 'java')
-rw-r--r-- | java/com/tigervnc/network/TcpSocket.java | 2 | ||||
-rw-r--r-- | java/com/tigervnc/rfb/AliasParameter.java | 2 | ||||
-rw-r--r-- | java/com/tigervnc/rfb/CConnection.java | 16 | ||||
-rw-r--r-- | java/com/tigervnc/rfb/CMsgReader.java | 6 | ||||
-rw-r--r-- | java/com/tigervnc/rfb/IntParameter.java | 4 | ||||
-rw-r--r-- | java/com/tigervnc/rfb/VoidParameter.java | 2 | ||||
-rw-r--r-- | java/com/tigervnc/vncviewer/CConn.java | 6 | ||||
-rw-r--r-- | java/com/tigervnc/vncviewer/Viewport.java | 2 |
8 files changed, 20 insertions, 20 deletions
diff --git a/java/com/tigervnc/network/TcpSocket.java b/java/com/tigervnc/network/TcpSocket.java index 22e854f5..9863c723 100644 --- a/java/com/tigervnc/network/TcpSocket.java +++ b/java/com/tigervnc/network/TcpSocket.java @@ -185,7 +185,7 @@ public class TcpSocket extends Socket { try { sock.channel.socket().setTcpNoDelay(!enable); } catch(java.net.SocketException e) { - vlog.error("unable to setsockopt TCP_NODELAY: "+e.getMessage()); + vlog.error("Unable to setsockopt TCP_NODELAY: "+e.getMessage()); return false; } return true; diff --git a/java/com/tigervnc/rfb/AliasParameter.java b/java/com/tigervnc/rfb/AliasParameter.java index 3f20ae46..fe0672ee 100644 --- a/java/com/tigervnc/rfb/AliasParameter.java +++ b/java/com/tigervnc/rfb/AliasParameter.java @@ -40,7 +40,7 @@ public class AliasParameter extends VoidParameter { public boolean isBool() { return param.isBool(); } public void setImmutable() { - vlog.debug("set immutable "+getName()+" (Alias)"); + vlog.debug("Set immutable "+getName()+" (Alias)"); param.setImmutable(); } diff --git a/java/com/tigervnc/rfb/CConnection.java b/java/com/tigervnc/rfb/CConnection.java index e0e669d8..b94346b9 100644 --- a/java/com/tigervnc/rfb/CConnection.java +++ b/java/com/tigervnc/rfb/CConnection.java @@ -160,7 +160,7 @@ abstract public class CConnection extends CMsgHandler { int majorVersion; int minorVersion; - vlog.debug("reading protocol version"); + vlog.debug("Reading protocol version"); if (!is.checkNoWait(12)) return; @@ -209,7 +209,7 @@ abstract public class CConnection extends CMsgHandler { private void processSecurityTypesMsg() { - vlog.debug("processing security types message"); + vlog.debug("Processing security types message"); int secType = Security.secTypeInvalid; @@ -292,7 +292,7 @@ abstract public class CConnection extends CMsgHandler { } private void processSecurityMsg() { - vlog.debug("processing security message"); + vlog.debug("Processing security message"); if (csecurity.processMsg(this)) { state_ = stateEnum.RFBSTATE_SECURITY_RESULT; processSecurityResultMsg(); @@ -300,7 +300,7 @@ abstract public class CConnection extends CMsgHandler { } private void processSecurityResultMsg() { - vlog.debug("processing security result message"); + vlog.debug("Processing security result message"); int result; if (server.beforeVersion(3,8) && csecurity.getType() == Security.secTypeNone) { result = Security.secResultOK; @@ -313,10 +313,10 @@ abstract public class CConnection extends CMsgHandler { securityCompleted(); return; case Security.secResultFailed: - vlog.debug("auth failed"); + vlog.debug("Auth failed"); break; case Security.secResultTooMany: - vlog.debug("auth failed - too many tries"); + vlog.debug("Auth failed: Too many tries"); break; default: throw new Exception("Unknown security result from server"); @@ -329,7 +329,7 @@ abstract public class CConnection extends CMsgHandler { } private void processInitMsg() { - vlog.debug("reading server initialisation"); + vlog.debug("Reading server initialisation"); reader_.readServerInit(); } @@ -411,7 +411,7 @@ abstract public class CConnection extends CMsgHandler { super.serverInit(width, height, pf, name); state_ = stateEnum.RFBSTATE_NORMAL; - vlog.debug("initialisation done"); + vlog.debug("Initialisation done"); initDone(); assert(framebuffer != null); diff --git a/java/com/tigervnc/rfb/CMsgReader.java b/java/com/tigervnc/rfb/CMsgReader.java index c71a1e02..52e61e6f 100644 --- a/java/com/tigervnc/rfb/CMsgReader.java +++ b/java/com/tigervnc/rfb/CMsgReader.java @@ -81,8 +81,8 @@ public class CMsgReader { readEndOfContinuousUpdates(); break; default: - vlog.error("unknown message type "+type); - throw new Exception("unknown message type"); + vlog.error("Unknown message type "+type); + throw new Exception("Unknown message type"); } } else { int x = is.readU16(); @@ -154,7 +154,7 @@ public class CMsgReader { if (len > 256*1024) { is.skip(len); - vlog.error("cut text too long ("+len+" bytes) - ignoring"); + vlog.error("Cut text too long ("+len+" bytes) - ignoring"); return; } diff --git a/java/com/tigervnc/rfb/IntParameter.java b/java/com/tigervnc/rfb/IntParameter.java index dcad04a8..ddc8baf4 100644 --- a/java/com/tigervnc/rfb/IntParameter.java +++ b/java/com/tigervnc/rfb/IntParameter.java @@ -40,7 +40,7 @@ public class IntParameter extends VoidParameter { public boolean setParam(String v) { if (immutable) return true; - vlog.debug("set "+getName()+"(Int) to "+v); + vlog.debug("Set "+getName()+"(Int) to "+v); try { int i; i = Integer.parseInt(v); @@ -55,7 +55,7 @@ public class IntParameter extends VoidParameter { public boolean setParam(int v) { if (immutable) return true; - vlog.debug("set "+getName()+"(Int) to "+v); + vlog.debug("Set "+getName()+"(Int) to "+v); if (v < minValue || v > maxValue) return false; value = v; diff --git a/java/com/tigervnc/rfb/VoidParameter.java b/java/com/tigervnc/rfb/VoidParameter.java index 2af0a81d..529c790d 100644 --- a/java/com/tigervnc/rfb/VoidParameter.java +++ b/java/com/tigervnc/rfb/VoidParameter.java @@ -61,7 +61,7 @@ abstract public class VoidParameter { abstract public String getValueStr(); public boolean isBool() { return false; } public void setImmutable() { - vlog.debug("set immutable "+getName()); + vlog.debug("Set immutable "+getName()); immutable = true; } diff --git a/java/com/tigervnc/vncviewer/CConn.java b/java/com/tigervnc/vncviewer/CConn.java index 11b6da44..ff22206d 100644 --- a/java/com/tigervnc/vncviewer/CConn.java +++ b/java/com/tigervnc/vncviewer/CConn.java @@ -113,10 +113,10 @@ public class CConn extends CConnection implements Tunnel.createTunnel(gatewayHost, getServerName(), getServerPort(), localPort); sock = new TcpSocket("localhost", localPort); - vlog.info("connected to localhost port "+localPort); + vlog.info("Connected to localhost port "+localPort); } else { sock = new TcpSocket(getServerName(), getServerPort()); - vlog.info("connected to host "+getServerName()+" port "+getServerPort()); + vlog.info("Connected to host "+getServerName()+" port "+getServerPort()); } } catch (java.lang.Exception e) { throw new Exception(e.getMessage()); @@ -126,7 +126,7 @@ public class CConn extends CConnection implements if (listenMode.getValue()) vlog.info("Accepted connection from " + name); else - vlog.info("connected to host "+Hostname.getHost(name)+" port "+Hostname.getPort(name)); + vlog.info("Connected to host "+Hostname.getHost(name)+" port "+Hostname.getPort(name)); } // See callback below diff --git a/java/com/tigervnc/vncviewer/Viewport.java b/java/com/tigervnc/vncviewer/Viewport.java index e12ef2a6..c293cb7d 100644 --- a/java/com/tigervnc/vncviewer/Viewport.java +++ b/java/com/tigervnc/vncviewer/Viewport.java @@ -168,7 +168,7 @@ class Viewport extends JPanel implements ActionListener { if (data[i*4 + 3] != 0) break; if ((i == width*height) && dotWhenNoCursor.getValue()) { - vlog.debug("cursor is empty - using dot"); + vlog.debug("Cursor is empty: Using dot"); cursor = new BufferedImage(5, 5, BufferedImage.TYPE_INT_ARGB_PRE); cursor.setRGB(0, 0, 5, 5, dotcursor_xpm, 0, 5); cursorHotspot.x = cursorHotspot.y = 3; |