Index: source/ariba/utility/bootstrap/modules/bluetoothsdp/BluetoothSdp.cpp
===================================================================
--- source/ariba/utility/bootstrap/modules/bluetoothsdp/BluetoothSdp.cpp	(revision 4870)
+++ source/ariba/utility/bootstrap/modules/bluetoothsdp/BluetoothSdp.cpp	(revision 4879)
@@ -43,5 +43,5 @@
 // Attribute descriptors for SDP
 // base was chosen randomly
-#define SDP_SPOVNET_BASE 		0x4000
+#define SDP_SPOVNET_BASE 			0x4000
 #define SDP_ATTR_SPOVNET_NAME		0x0000 + SDP_SPOVNET_BASE
 #define SDP_ATTR_SPOVNET_INFO1		0x0001 + SDP_SPOVNET_BASE
@@ -133,5 +133,5 @@
 	 */
 
-	logging_info("Registering SDP service.\n");
+	logging_info("Registering SDP service");
 
 	uint8_t rfcomm_channel = channel_;
@@ -239,6 +239,5 @@
 
 	if (sdp_session_ == 0) {
-		std::cout
-		<< "Something is wrong with your SDP server, nothing registered.";
+		logging_error( "Something is wrong with your SDP server, nothing registered" );
 	} else {
 		sdp_record_register(sdp_session_, &record, 0);
@@ -260,5 +259,5 @@
 #ifdef HAVE_BLUETOOTH_BLUETOOTH_H
 
-	logging_info("Unregistering SDP service.\n");
+	logging_info("Unregistering SDP service");
 	sdp_close(sdp_session_);
 
@@ -276,5 +275,5 @@
 	 */
 
-	logging_info("Scanning for peers.\n");
+	logging_info("Scanning for peers");
 
 	inquiry_info *ii = NULL;
@@ -293,5 +292,5 @@
 	sock = hci_open_dev(dev_id);
 	if (dev_id < 0 || sock < 0) {
-		perror("opening socket");
+		logging_error("opening socket");
 		exit(1);
 	}
@@ -304,5 +303,5 @@
 	num_rsp = hci_inquiry(dev_id, len, max_rsp, NULL, &ii, flags);
 	if (num_rsp < 0)
-	perror("hci_inquiry");
+		logging_error("hci_inquiry");
 
 	for (i = 0; i < num_rsp; i++) {
@@ -324,10 +323,8 @@
 	close(sock);
 
-	logging_info("Next scan in 20 seconds.\n");
+	logging_info("Next scan in 20 seconds");
 
 	scan_timer_.expires_from_now(boost::posix_time::seconds(20));
 	scan_timer_.async_wait(boost::bind(&BluetoothSdp::bt_scan, this));
-
-
 }
 
@@ -399,4 +396,3 @@
 #endif // HAVE_BLUETOOTH_BLUETOOTH_H
 
-}
-} //namespace ariba, utility
+}} //namespace ariba, utility
Index: source/ariba/utility/bootstrap/modules/bluetoothsdp/BluetoothSdp.h
===================================================================
--- source/ariba/utility/bootstrap/modules/bluetoothsdp/BluetoothSdp.h	(revision 4870)
+++ source/ariba/utility/bootstrap/modules/bluetoothsdp/BluetoothSdp.h	(revision 4879)
@@ -53,9 +53,9 @@
 
 #ifdef HAVE_BLUETOOTH_BLUETOOTH_H
-#include <bluetooth/bluetooth.h>
-#include <bluetooth/sdp.h>
-#include <bluetooth/sdp_lib.h>
-#include <bluetooth/hci.h>
-#include <bluetooth/hci_lib.h>
+  #include <bluetooth/bluetooth.h>
+  #include <bluetooth/sdp.h>
+  #include <bluetooth/sdp_lib.h>
+  #include <bluetooth/hci.h>
+  #include <bluetooth/hci_lib.h>
 #endif
 
@@ -80,7 +80,7 @@
 	virtual void revokeService(string name);
 
+private:
+
 #ifdef HAVE_BLUETOOTH_BLUETOOTH_H
-
-private:
 	void bt_scan();
 	void sdp_search(bdaddr_t target);
@@ -88,5 +88,4 @@
 	sdp_session_t *sdp_session_;
 	uint8_t channel_;
-
 #endif // HAVE_BLUETOOTH_BLUETOOTH_H
 
@@ -95,5 +94,4 @@
 	boost::thread t_;
 
-
 };
 
