From: <che...@us...> - 2009-10-11 15:51:58
|
Revision: 3120 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=3120&view=rev Author: chemelli_sf Date: 2009-10-11 15:51:50 +0000 (Sun, 11 Oct 2009) Log Message: ----------- Minor logging changes Modified Paths: -------------- trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/Ads Tech PTV-335 Receiver/AdsTechPTV335Receiver.cs trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/Custom HID Receiver/Custom HID Receiver.cs trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/Direct Input Receiver/DirectInputReceiver.cs trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/FireDTV Receiver/FireDTVReceiver.cs trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/FusionRemote Receiver/FusionRemoteReceiver.cs trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/IR501 Receiver/IR501Receiver.cs trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/IR507 Receiver/IR507Receiver.cs trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/IRTrans Transceiver/IRTransTransceiver.cs trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/IgorPlug Receiver/IgorPlug Receiver.cs trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/MacMini Receiver/MacMini Receiver.cs trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/MicrosoftMceTransceiver.cs trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/RC102 Receiver/RC102Receiver.cs trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/Technotrend Receiver/Technotrend Receiver.cs trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/USB-UIRT Transceiver/UirtTransceiver.cs trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/WinLirc Transceiver/WinLirc Transceiver.cs trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/X10 Transceiver/X10Transceiver.cs trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/XBCDRC Receiver/XBCDRC Receiver.cs Modified: trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/Ads Tech PTV-335 Receiver/AdsTechPTV335Receiver.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/Ads Tech PTV-335 Receiver/AdsTechPTV335Receiver.cs 2009-10-11 15:31:37 UTC (rev 3119) +++ trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/Ads Tech PTV-335 Receiver/AdsTechPTV335Receiver.cs 2009-10-11 15:51:50 UTC (rev 3120) @@ -143,7 +143,7 @@ } catch (Exception ex) { - IrssLog.Error("{0,15} exception: {1} type: {2}", Name, ex.Message, ex.GetType()); + IrssLog.Error("{0,15}: exception {1} type: {2}", Name, ex.Message, ex.GetType()); return DetectionResult.DeviceException; } Modified: trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/Custom HID Receiver/Custom HID Receiver.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/Custom HID Receiver/Custom HID Receiver.cs 2009-10-11 15:31:37 UTC (rev 3119) +++ trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/Custom HID Receiver/Custom HID Receiver.cs 2009-10-11 15:51:50 UTC (rev 3120) @@ -239,7 +239,7 @@ { if (Environment.UserInteractive) { - IrssLog.Error("{0,15}: not available on \"service\" installation mode", Name); + IrssLog.Warn("{0,15}: not available on \"service\" installation mode", Name); return DetectionResult.DeviceDisabled; } return DetectionResult.DevicePresent; @@ -338,7 +338,7 @@ XmlTextWriter writer = new XmlTextWriter(ConfigurationFile, Encoding.UTF8); writer.Formatting = Formatting.Indented; writer.Indentation = 1; - writer.IndentChar = (char) 9; + writer.IndentChar = (char)9; writer.WriteStartDocument(true); writer.WriteStartElement("settings"); // <settings> @@ -376,7 +376,7 @@ private bool RegisterForRawInput(RawInput.RAWINPUTDEVICE[] devices) { - return RawInput.RegisterRawInputDevices(devices, (uint) devices.Length, (uint) Marshal.SizeOf(devices[0])); + return RawInput.RegisterRawInputDevices(devices, (uint)devices.Length, (uint)Marshal.SizeOf(devices[0])); } private void ProcMessage(ref Message m) @@ -433,9 +433,9 @@ uint dwSize = 0; RawInput.GetRawInputData(message.LParam, RawInput.RawInputCommand.Input, IntPtr.Zero, ref dwSize, - (uint) Marshal.SizeOf(typeof (RawInput.RAWINPUTHEADER))); + (uint)Marshal.SizeOf(typeof(RawInput.RAWINPUTHEADER))); - IntPtr buffer = Marshal.AllocHGlobal((int) dwSize); + IntPtr buffer = Marshal.AllocHGlobal((int)dwSize); try { if (buffer == IntPtr.Zero) @@ -443,16 +443,16 @@ if ( RawInput.GetRawInputData(message.LParam, RawInput.RawInputCommand.Input, buffer, ref dwSize, - (uint) Marshal.SizeOf(typeof (RawInput.RAWINPUTHEADER))) != dwSize) + (uint)Marshal.SizeOf(typeof(RawInput.RAWINPUTHEADER))) != dwSize) return; - RawInput.RAWINPUT raw = (RawInput.RAWINPUT) Marshal.PtrToStructure(buffer, typeof (RawInput.RAWINPUT)); + RawInput.RAWINPUT raw = (RawInput.RAWINPUT)Marshal.PtrToStructure(buffer, typeof(RawInput.RAWINPUT)); switch (raw.header.dwType) { case RawInput.RawInputType.HID: { - int offset = Marshal.SizeOf(typeof (RawInput.RAWINPUTHEADER)) + Marshal.SizeOf(typeof (RawInput.RAWHID)); + int offset = Marshal.SizeOf(typeof(RawInput.RAWINPUTHEADER)) + Marshal.SizeOf(typeof(RawInput.RAWHID)); byte[] bRawData = new byte[offset + raw.hid.dwSizeHid]; Marshal.Copy(buffer, bRawData, 0, bRawData.Length); @@ -492,7 +492,7 @@ Trace.WriteLine(String.Format("Last Y: {0}", raw.mouse.lLastY)); #endif if (_mouseHandler != null) - _mouseHandler(Name, raw.mouse.lLastX, raw.mouse.lLastY, (int) raw.mouse.ulButtons); + _mouseHandler(Name, raw.mouse.lLastX, raw.mouse.lLastY, (int)raw.mouse.ulButtons); break; } Modified: trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/Direct Input Receiver/DirectInputReceiver.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/Direct Input Receiver/DirectInputReceiver.cs 2009-10-11 15:31:37 UTC (rev 3119) +++ trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/Direct Input Receiver/DirectInputReceiver.cs 2009-10-11 15:51:50 UTC (rev 3120) @@ -252,7 +252,7 @@ } catch (Exception ex) { - IrssLog.Error("{0,15} exception: {1}", Name, ex.Message); + IrssLog.Error("{0,15}: exception {1}", Name, ex.Message); return DetectionResult.DeviceException; } Modified: trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/FireDTV Receiver/FireDTVReceiver.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/FireDTV Receiver/FireDTVReceiver.cs 2009-10-11 15:31:37 UTC (rev 3119) +++ trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/FireDTV Receiver/FireDTVReceiver.cs 2009-10-11 15:51:50 UTC (rev 3120) @@ -131,7 +131,7 @@ } catch (Exception ex) { - IrssLog.Error("{0,15} exception: {1} type: {2}", Name, ex.Message, ex.GetType()); + IrssLog.Error("{0,15}: exception {1} type: {2}", Name, ex.Message, ex.GetType()); return DetectionResult.DeviceException; } } Modified: trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/FusionRemote Receiver/FusionRemoteReceiver.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/FusionRemote Receiver/FusionRemoteReceiver.cs 2009-10-11 15:31:37 UTC (rev 3119) +++ trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/FusionRemote Receiver/FusionRemoteReceiver.cs 2009-10-11 15:51:50 UTC (rev 3120) @@ -134,7 +134,7 @@ } catch (Exception ex) { - IrssLog.Error("{0,15} exception: {1}", Name, ex.Message); + IrssLog.Error("{0,15}: exception {1}", Name, ex.Message); return DetectionResult.DeviceException; } Modified: trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/IR501 Receiver/IR501Receiver.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/IR501 Receiver/IR501Receiver.cs 2009-10-11 15:31:37 UTC (rev 3119) +++ trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/IR501 Receiver/IR501Receiver.cs 2009-10-11 15:51:50 UTC (rev 3120) @@ -135,7 +135,7 @@ } catch (Exception ex) { - IrssLog.Error("{0,15} exception: {1}", Name, ex.Message); + IrssLog.Error("{0,15}: exception {1}", Name, ex.Message); return DetectionResult.DeviceException; } Modified: trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/IR507 Receiver/IR507Receiver.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/IR507 Receiver/IR507Receiver.cs 2009-10-11 15:31:37 UTC (rev 3119) +++ trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/IR507 Receiver/IR507Receiver.cs 2009-10-11 15:51:50 UTC (rev 3120) @@ -135,7 +135,7 @@ } catch (Exception ex) { - IrssLog.Error("{0,15} exception: {1}", Name, ex.Message); + IrssLog.Error("{0,15}: exception {1}", Name, ex.Message); return DetectionResult.DeviceException; } Modified: trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/IRTrans Transceiver/IRTransTransceiver.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/IRTrans Transceiver/IRTransTransceiver.cs 2009-10-11 15:31:37 UTC (rev 3119) +++ trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/IRTrans Transceiver/IRTransTransceiver.cs 2009-10-11 15:51:50 UTC (rev 3120) @@ -325,7 +325,7 @@ } catch (Exception ex) { - IrssLog.Error("{0,15} exception: {1}", Name, ex.Message); + IrssLog.Error("{0,15}: exception {1}", Name, ex.Message); return DetectionResult.DeviceException; } Modified: trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/IgorPlug Receiver/IgorPlug Receiver.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/IgorPlug Receiver/IgorPlug Receiver.cs 2009-10-11 15:31:37 UTC (rev 3119) +++ trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/IgorPlug Receiver/IgorPlug Receiver.cs 2009-10-11 15:51:50 UTC (rev 3120) @@ -248,7 +248,7 @@ } catch (Exception ex) { - IrssLog.Error("{0,15} exception: {1}", Name, ex.Message); + IrssLog.Error("{0,15}: exception {1}", Name, ex.Message); return DetectionResult.DeviceException; } Modified: trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/MacMini Receiver/MacMini Receiver.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/MacMini Receiver/MacMini Receiver.cs 2009-10-11 15:31:37 UTC (rev 3119) +++ trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/MacMini Receiver/MacMini Receiver.cs 2009-10-11 15:51:50 UTC (rev 3120) @@ -138,14 +138,14 @@ { if (ex.NativeErrorCode != 13) { - IrssLog.Error("{0,15} exception: {1}", Name, ex.NativeErrorCode); + IrssLog.Error("{0,15}: exception {1}", Name, ex.NativeErrorCode); return DetectionResult.DeviceException; } - IrssLog.Debug("{0,15} exception: {1}", Name, ex.NativeErrorCode); + IrssLog.Debug("{0,15}: exception {1}", Name, ex.NativeErrorCode); } catch (Exception ex) { - IrssLog.Error("{0,15} exception: {1} type: {2}", Name, ex.Message, ex.GetType()); + IrssLog.Error("{0,15}: exception {1} type: {2}", Name, ex.Message, ex.GetType()); return DetectionResult.DeviceException; } Modified: trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/MicrosoftMceTransceiver.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/MicrosoftMceTransceiver.cs 2009-10-11 15:31:37 UTC (rev 3119) +++ trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/MicrosoftMceTransceiver.cs 2009-10-11 15:51:50 UTC (rev 3120) @@ -358,7 +358,7 @@ } catch(Exception ex) { - IrssLog.Error("{0,15} exception: {1}", Name, ex.Message); + IrssLog.Error("{0,15}: exception {1}", Name, ex.Message); return DetectionResult.DeviceException; } Modified: trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/RC102 Receiver/RC102Receiver.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/RC102 Receiver/RC102Receiver.cs 2009-10-11 15:31:37 UTC (rev 3119) +++ trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/RC102 Receiver/RC102Receiver.cs 2009-10-11 15:51:50 UTC (rev 3120) @@ -137,14 +137,14 @@ { if (ex.NativeErrorCode != 13) { - IrssLog.Error("{0,15} exception: {1}|{2}", Name, ex.NativeErrorCode, ex.Message); + IrssLog.Error("{0,15}: exception {1}|{2}", Name, ex.NativeErrorCode, ex.Message); return DetectionResult.DeviceException; } - IrssLog.Debug("{0,15} exception: {1} | {2} | {3}", Name, ex.NativeErrorCode, ex.Message, ex.GetType()); + IrssLog.Debug("{0,15}: exception {1} | {2} | {3}", Name, ex.NativeErrorCode, ex.Message, ex.GetType()); } catch (Exception ex) { - IrssLog.Error("{0,15} exception: {1} type: {2}", Name, ex.Message, ex.GetType()); + IrssLog.Error("{0,15}: exception {1} type: {2}", Name, ex.Message, ex.GetType()); return DetectionResult.DeviceException; } Modified: trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/Technotrend Receiver/Technotrend Receiver.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/Technotrend Receiver/Technotrend Receiver.cs 2009-10-11 15:31:37 UTC (rev 3119) +++ trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/Technotrend Receiver/Technotrend Receiver.cs 2009-10-11 15:51:50 UTC (rev 3120) @@ -339,7 +339,7 @@ } catch (Exception ex) { - IrssLog.Error("{0,15} exception: {1}", Name, ex.Message); + IrssLog.Error("{0,15}: exception {1}", Name, ex.Message); return DetectionResult.DeviceException; } Modified: trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/USB-UIRT Transceiver/UirtTransceiver.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/USB-UIRT Transceiver/UirtTransceiver.cs 2009-10-11 15:31:37 UTC (rev 3119) +++ trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/USB-UIRT Transceiver/UirtTransceiver.cs 2009-10-11 15:51:50 UTC (rev 3120) @@ -418,7 +418,7 @@ } catch (Exception ex) { - IrssLog.Error("{0,15} exception: {1} type: {2}", Name, ex.Message, ex.GetType()); + IrssLog.Error("{0,15}: exception {1} type: {2}", Name, ex.Message, ex.GetType()); return DetectionResult.DeviceException; } Modified: trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/WinLirc Transceiver/WinLirc Transceiver.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/WinLirc Transceiver/WinLirc Transceiver.cs 2009-10-11 15:31:37 UTC (rev 3119) +++ trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/WinLirc Transceiver/WinLirc Transceiver.cs 2009-10-11 15:51:50 UTC (rev 3120) @@ -204,7 +204,7 @@ } catch (Exception ex) { - IrssLog.Error("{0,15} exception: {1}", Name, ex.Message); + IrssLog.Error("{0,15}: exception {1}", Name, ex.Message); return DetectionResult.DeviceException; } Modified: trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/X10 Transceiver/X10Transceiver.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/X10 Transceiver/X10Transceiver.cs 2009-10-11 15:31:37 UTC (rev 3119) +++ trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/X10 Transceiver/X10Transceiver.cs 2009-10-11 15:51:50 UTC (rev 3120) @@ -192,14 +192,14 @@ { if (ex.ErrorCode != -2147221164) { - IrssLog.Warn("{0,15} exception: {1}", Name, ex.ErrorCode); + IrssLog.Warn("{0,15}: exception {1}", Name, ex.ErrorCode); return DetectionResult.DeviceException; } - IrssLog.Debug("{0,15} exception: {1}", Name, ex.ErrorCode); + IrssLog.Debug("{0,15}: exception {1}", Name, ex.ErrorCode); } catch (Exception ex) { - IrssLog.Error("{0,15} exception: {1} type: {2}", Name, ex.Message, ex.GetType()); + IrssLog.Error("{0,15}: exception {1} type: {2}", Name, ex.Message, ex.GetType()); return DetectionResult.DeviceException; } Modified: trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/XBCDRC Receiver/XBCDRC Receiver.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/XBCDRC Receiver/XBCDRC Receiver.cs 2009-10-11 15:31:37 UTC (rev 3119) +++ trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/XBCDRC Receiver/XBCDRC Receiver.cs 2009-10-11 15:51:50 UTC (rev 3120) @@ -226,14 +226,14 @@ { if (ex.NativeErrorCode != 13) { - IrssLog.Error("{0,15} exception: {1}", Name, ex.NativeErrorCode); + IrssLog.Error("{0,15}: exception {1}", Name, ex.NativeErrorCode); return DetectionResult.DeviceException; } - IrssLog.Debug("{0,15} exception: {1}", Name, ex.NativeErrorCode); + IrssLog.Debug("{0,15}: exception {1}", Name, ex.NativeErrorCode); } catch (Exception ex) { - IrssLog.Error("{0,15} exception: {1} type: {2}", Name, ex.Message, ex.GetType()); + IrssLog.Error("{0,15}: exception {1} type: {2}", Name, ex.Message, ex.GetType()); return DetectionResult.DeviceException; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |