Index: uspace/drv/usbhub/main.c
===================================================================
--- uspace/drv/usbhub/main.c	(revision 78d15251805572d910e204fe8e1859a330c06692)
+++ uspace/drv/usbhub/main.c	(revision ff244e6b3c292cefe297c5e3d258f40aa520583d)
@@ -37,5 +37,4 @@
 #include <usb/usbdrv.h>
 
-
 #include "usbhub.h"
 #include "usbhub_private.h"
@@ -65,5 +64,5 @@
 int main(int argc, char *argv[])
 {
-	usb_dprintf_enable(NAME, USB_LOG_LEVEL_INFO);
+	usb_dprintf_enable(NAME, 0);
 	
 	fibril_mutex_initialize(&usb_hub_list_lock);
Index: uspace/drv/usbhub/usbhub.c
===================================================================
--- uspace/drv/usbhub/usbhub.c	(revision 78d15251805572d910e204fe8e1859a330c06692)
+++ uspace/drv/usbhub/usbhub.c	(revision ff244e6b3c292cefe297c5e3d258f40aa520583d)
@@ -70,5 +70,5 @@
 
 
-	dprintf(USB_LOG_LEVEL_DEBUG, "phone to hc = %d", hc);
+	//printf("[usb_hub] phone to hc = %d\n", hc);
 	if (hc < 0) {
 		return result;
@@ -76,5 +76,5 @@
 	//get some hub info
 	usb_address_t addr = usb_drv_get_my_address(hc, device);
-	dprintf(USB_LOG_LEVEL_DEBUG, "address of newly created hub = %d", addr);
+	dprintf(1, "address of newly created hub = %d", addr);
 	/*if(addr<0){
 		//return result;
@@ -87,10 +87,10 @@
 	// get hub descriptor
 
-	dprintf(USB_LOG_LEVEL_DEBUG, "creating serialized descripton");
+	//printf("[usb_hub] creating serialized descriptor\n");
 	void * serialized_descriptor = malloc(USB_HUB_MAX_DESCRIPTOR_SIZE);
 	usb_hub_descriptor_t * descriptor;
 	size_t received_size;
 	int opResult;
-	dprintf(USB_LOG_LEVEL_DEBUG, "starting control transaction");
+	//printf("[usb_hub] starting control transaction\n");
 	
 	opResult = usb_drv_req_get_descriptor(hc, addr,
@@ -100,16 +100,16 @@
 
 	if (opResult != EOK) {
-		dprintf(USB_LOG_LEVEL_ERROR, "failed when receiving hub descriptor, badcode = %d",opResult);
+		dprintf(1, "failed when receiving hub descriptor, badcode = %d",opResult);
 		free(serialized_descriptor);
 		return result;
 	}
-	dprintf(USB_LOG_LEVEL_DEBUG2, "deserializing descriptor");
+	//printf("[usb_hub] deserializing descriptor\n");
 	descriptor = usb_deserialize_hub_desriptor(serialized_descriptor);
 	if(descriptor==NULL){
-		dprintf(USB_LOG_LEVEL_WARNING, "could not deserialize descriptor ");
+		dprintf(1, "could not deserialize descriptor ");
 		result->port_count = 1;///\TODO this code is only for debug!!!
 		return result;
 	}
-	dprintf(USB_LOG_LEVEL_INFO, "setting port count to %d",descriptor->ports_count);
+	//printf("[usb_hub] setting port count to %d\n",descriptor->ports_count);
 	result->port_count = descriptor->ports_count;
 	result->attached_devs = (usb_hub_attached_device_t*)
@@ -120,5 +120,5 @@
 		result->attached_devs[i].address=0;
 	}
-	dprintf(USB_LOG_LEVEL_DEBUG2, "freeing data");
+	//printf("[usb_hub] freeing data\n");
 	free(serialized_descriptor);
 	free(descriptor->devices_removable);
@@ -127,5 +127,5 @@
 	//finish
 
-	dprintf(USB_LOG_LEVEL_INFO, "hub info created");
+	dprintf(1, "hub info created");
 
 	return result;
@@ -133,5 +133,6 @@
 
 int usb_add_hub_device(device_t *dev) {
-	dprintf(USB_LOG_LEVEL_INFO, "add_hub_device(handle=%d)", (int) dev->handle);
+	dprintf(1, "add_hub_device(handle=%d)", (int) dev->handle);
+	dprintf(1, "hub device");
 
 	/*
@@ -163,10 +164,10 @@
 	    &std_descriptor);
 	if(opResult!=EOK){
-		dprintf(USB_LOG_LEVEL_ERROR, "could not get device descriptor, %d",opResult);
+		dprintf(1, "could not get device descriptor, %d",opResult);
 		return opResult;
 	}
-	dprintf(USB_LOG_LEVEL_INFO, "hub has %d configurations",std_descriptor.configuration_count);
+	dprintf(1, "hub has %d configurations",std_descriptor.configuration_count);
 	if(std_descriptor.configuration_count<1){
-		dprintf(USB_LOG_LEVEL_ERROR, "THERE ARE NO CONFIGURATIONS AVAILABLE");
+		dprintf(1, "THERE ARE NO CONFIGURATIONS AVAILABLE");
 		//shouldn`t I return?
 	}
@@ -177,5 +178,5 @@
         &config_descriptor);
 	if(opResult!=EOK){
-		dprintf(USB_LOG_LEVEL_ERROR, "could not get configuration descriptor, %d",opResult);
+		dprintf(1, "could not get configuration descriptor, %d",opResult);
 		return opResult;
 	}
@@ -185,5 +186,5 @@
 
 	if (opResult != EOK) {
-		dprintf(USB_LOG_LEVEL_ERROR, "something went wrong when setting hub`s configuration, %d", opResult);
+		dprintf(1, "something went wrong when setting hub`s configuration, %d", opResult);
 	}
 
@@ -192,7 +193,7 @@
 		usb_hub_set_power_port_request(&request, port);
 		opResult = usb_drv_sync_control_write(hc, target, &request, NULL, 0);
-		dprintf(USB_LOG_LEVEL_INFO, "powering port %d",port);
+		dprintf(1, "powering port %d",port);
 		if (opResult != EOK) {
-			dprintf(USB_LOG_LEVEL_WARNING, "something went wrong when setting hub`s %dth port", port);
+			dprintf(1, "something went wrong when setting hub`s %dth port", port);
 		}
 	}
@@ -206,5 +207,5 @@
 	fibril_mutex_unlock(&usb_hub_list_lock);
 
-	dprintf(USB_LOG_LEVEL_DEBUG, "hub info added to list");
+	dprintf(1, "hub info added to list");
 	//(void)hub_info;
 	usb_hub_check_hub_changes();
@@ -212,9 +213,9 @@
 	
 
-	dprintf(USB_LOG_LEVEL_INFO, "hub dev added");
-	dprintf(USB_LOG_LEVEL_DEBUG, "\taddress %d, has %d ports ",
+	dprintf(1, "hub dev added");
+	dprintf(1, "\taddress %d, has %d ports ",
 			hub_info->usb_device->address,
 			hub_info->port_count);
-	dprintf(USB_LOG_LEVEL_DEBUG, "\tused configuration %d",config_descriptor.configuration_number);
+	dprintf(1, "\tused configuration %d",config_descriptor.configuration_number);
 
 	return EOK;
@@ -237,8 +238,8 @@
 inline static int usb_hub_release_default_address(int hc){
 	int opResult;
-	dprintf(USB_LOG_LEVEL_INFO, "releasing default address");
+	dprintf(1, "releasing default address");
 	opResult = usb_drv_release_default_address(hc);
 	if (opResult != EOK) {
-		dprintf(USB_LOG_LEVEL_WARNING, "failed to release default address");
+		dprintf(1, "failed to release default address");
 	}
 	return opResult;
@@ -254,9 +255,9 @@
 	usb_device_request_setup_packet_t request;
 	int opResult;
-	dprintf(USB_LOG_LEVEL_INFO, "some connection changed");
+	dprintf(1, "some connection changed");
 	//get default address
 	opResult = usb_drv_reserve_default_address(hc);
 	if (opResult != EOK) {
-		dprintf(USB_LOG_LEVEL_WARNING, "cannot assign default address, it is probably used");
+		dprintf(1, "cannot assign default address, it is probably used");
 		return;
 	}
@@ -269,5 +270,5 @@
 			);
 	if (opResult != EOK) {
-		dprintf(USB_LOG_LEVEL_ERROR, "something went wrong when reseting a port");
+		dprintf(1, "something went wrong when reseting a port");
 		usb_hub_release_default_address(hc);
 	}
@@ -284,9 +285,9 @@
 
 	int opResult;
-	dprintf(USB_LOG_LEVEL_INFO, "finalizing add device");
+	dprintf(1, "finalizing add device");
 	opResult = usb_hub_clear_port_feature(hc, target.address,
 	    port, USB_HUB_FEATURE_C_PORT_RESET);
 	if (opResult != EOK) {
-		dprintf(USB_LOG_LEVEL_ERROR, "failed to clear port reset feature");
+		dprintf(1, "failed to clear port reset feature");
 		usb_hub_release_default_address(hc);
 		return;
@@ -296,15 +297,15 @@
 	usb_address_t new_device_address = usb_drv_request_address(hc);
 	if (new_device_address < 0) {
-		dprintf(USB_LOG_LEVEL_ERROR, "failed to get free USB address");
+		dprintf(1, "failed to get free USB address");
 		opResult = new_device_address;
 		usb_hub_release_default_address(hc);
 		return;
 	}
-	dprintf(USB_LOG_LEVEL_INFO, "setting new address %d",new_device_address);
+	dprintf(1, "setting new address");
 	opResult = usb_drv_req_set_address(hc, USB_ADDRESS_DEFAULT,
 	    new_device_address);
 
 	if (opResult != EOK) {
-		dprintf(USB_LOG_LEVEL_ERROR, "could not set address for new device");
+		dprintf(1, "could not set address for new device");
 		usb_hub_release_default_address(hc);
 		return;
@@ -321,5 +322,5 @@
             new_device_address, &child_handle);
 	if (opResult != EOK) {
-		dprintf(USB_LOG_LEVEL_ERROR, "could not start driver for new device");
+		dprintf(1, "could not start driver for new device");
 		return;
 	}
@@ -329,8 +330,8 @@
 	opResult = usb_drv_bind_address(hc, new_device_address, child_handle);
 	if (opResult != EOK) {
-		dprintf(USB_LOG_LEVEL_ERROR, "could not assign address of device in hcd");
-		return;
-	}
-	dprintf(USB_LOG_LEVEL_INFO, "new device address %d, handle %zu",
+		dprintf(1, "could not assign address of device in hcd");
+		return;
+	}
+	dprintf(1, "new device address %d, handle %zu",
 	    new_device_address, child_handle);
 
@@ -357,10 +358,10 @@
 		opResult = usb_drv_release_address(hc,hub->attached_devs[port].address);
 		if(opResult != EOK) {
-			dprintf(USB_LOG_LEVEL_WARNING, "could not release address of " \
+			dprintf(1, "could not release address of " \
 			    "removed device: %d", opResult);
 		}
 		hub->attached_devs[port].address = 0;
 	}else{
-		dprintf(USB_LOG_LEVEL_WARNING, "this is strange, disconnected device had no address");
+		dprintf(1, "this is strange, disconnected device had no address");
 		//device was disconnected before it`s port was reset - return default address
 		usb_drv_release_default_address(hc);
@@ -376,5 +377,5 @@
 static void usb_hub_process_interrupt(usb_hub_info_t * hub, int hc,
         uint16_t port, usb_address_t address) {
-	dprintf(USB_LOG_LEVEL_DEBUG, "interrupt at port %d", port);
+	dprintf(1, "interrupt at port %d", port);
 	//determine type of change
 	usb_target_t target;
@@ -394,9 +395,9 @@
 			);
 	if (opResult != EOK) {
-		dprintf(USB_LOG_LEVEL_ERROR, "ERROR: could not get port status");
+		dprintf(1, "ERROR: could not get port status");
 		return;
 	}
 	if (rcvd_size != sizeof (usb_port_status_t)) {
-		dprintf(USB_LOG_LEVEL_ERROR, "ERROR: received status has incorrect size");
+		dprintf(1, "ERROR: received status has incorrect size");
 		return;
 	}
@@ -407,5 +408,5 @@
 		// TODO: check opResult
 		if (usb_port_dev_connected(&status)) {
-			dprintf(USB_LOG_LEVEL_INFO, "some connection changed");
+			dprintf(1, "some connection changed");
 			usb_hub_init_add_device(hc, port, target);
 		} else {
@@ -415,9 +416,9 @@
 	//port reset
 	if (usb_port_reset_completed(&status)) {
-		dprintf(USB_LOG_LEVEL_INFO, "port reset complete");
+		dprintf(1, "port reset complete");
 		if (usb_port_enabled(&status)) {
 			usb_hub_finalize_add_device(hub, hc, port, target);
 		} else {
-			dprintf(USB_LOG_LEVEL_WARNING, "ERROR: port reset, but port still not enabled");
+			dprintf(1, "ERROR: port reset, but port still not enabled");
 		}
 	}
@@ -428,5 +429,5 @@
 	usb_port_set_dev_connected(&status, false);
 	if (status>>16) {
-		dprintf(USB_LOG_LEVEL_INFO, "there was some unsupported change on port %d: %X",port,status);
+		dprintf(1, "there was some unsupported change on port %d: %X",port,status);
 
 	}
@@ -457,5 +458,5 @@
 		target.address = hub_info->usb_device->address;
 		target.endpoint = 1;/// \TODO get from endpoint descriptor
-		dprintf(USB_LOG_LEVEL_INFO, "checking changes for hub at addr %d",
+		dprintf(1, "checking changes for hub at addr %d",
 		    target.address);
 
@@ -488,5 +489,5 @@
 		if (opResult != EOK) {
 			free(change_bitmap);
-			dprintf(USB_LOG_LEVEL_WARNING, "something went wrong while getting status of hub");
+			dprintf(1, "something went wrong while getting status of hub");
 			continue;
 		}
Index: uspace/drv/usbhub/usbhub_private.h
===================================================================
--- uspace/drv/usbhub/usbhub_private.h	(revision 78d15251805572d910e204fe8e1859a330c06692)
+++ uspace/drv/usbhub/usbhub_private.h	(revision ff244e6b3c292cefe297c5e3d258f40aa520583d)
@@ -61,10 +61,9 @@
 //************
 //
-// convenience debug printf for usb hub
+// convenience debug printf
 //
 //************
 #define dprintf(level, format, ...) \
 	usb_dprintf(NAME, (level), format "\n", ##__VA_ARGS__)
-
 
 /**
Index: uspace/drv/usbhub/utils.c
===================================================================
--- uspace/drv/usbhub/utils.c	(revision 78d15251805572d910e204fe8e1859a330c06692)
+++ uspace/drv/usbhub/utils.c	(revision ff244e6b3c292cefe297c5e3d258f40aa520583d)
@@ -116,14 +116,14 @@
 
 int usb_drv_sync_control_read(
-    int phone, usb_target_t target,
-    usb_device_request_setup_packet_t * request,
-    void * rcvd_buffer, size_t rcvd_size, size_t * actual_size
-) {
+		int phone, usb_target_t target,
+		usb_device_request_setup_packet_t * request,
+		void * rcvd_buffer, size_t rcvd_size, size_t * actual_size
+		) {
 	usb_handle_t handle;
 	int opResult;
 	//setup
 	opResult = usb_drv_async_control_read_setup(phone, target,
-	    request, sizeof (usb_device_request_setup_packet_t),
-	    &handle);
+			request, sizeof (usb_device_request_setup_packet_t),
+			&handle);
 	if (opResult != EOK) {
 		return opResult;
@@ -158,14 +158,14 @@
 
 int usb_drv_sync_control_write(
-    int phone, usb_target_t target,
-    usb_device_request_setup_packet_t * request,
-    void * sent_buffer, size_t sent_size
-) {
+		int phone, usb_target_t target,
+		usb_device_request_setup_packet_t * request,
+		void * sent_buffer, size_t sent_size
+		) {
 	usb_handle_t handle;
 	int opResult;
 	//setup
 	opResult = usb_drv_async_control_write_setup(phone, target,
-	    request, sizeof (usb_device_request_setup_packet_t),
-	    &handle);
+			request, sizeof (usb_device_request_setup_packet_t),
+			&handle);
 	if (opResult != EOK) {
 		return opResult;
@@ -188,5 +188,5 @@
 	//finalize
 	opResult = usb_drv_async_control_write_status(phone, target,
-	    &handle);
+			&handle);
 	if (opResult != EOK) {
 		return opResult;
Index: uspace/lib/usb/include/usb/usbmem.h
===================================================================
--- uspace/lib/usb/include/usb/usbmem.h	(revision 78d15251805572d910e204fe8e1859a330c06692)
+++ uspace/lib/usb/include/usb/usbmem.h	(revision ff244e6b3c292cefe297c5e3d258f40aa520583d)
@@ -1,4 +1,4 @@
 /*
- * Copyright (c) 2011 Matus Dekanek
+ * Copyright (c) 2010 Matus Dekanek
  * All rights reserved.
  *
@@ -35,5 +35,5 @@
  * @{
  */
-/** @file definitions of memory management with address translation, used mostly in usb stack
+/** @file definitions of special memory management, used mostly in usb stack
  *
  * USB HCD needs traslation between physical and virtual addresses. These
@@ -59,7 +59,7 @@
 
 extern void * mman_malloc(
-    size_t size,
-    size_t alignment,
-    unsigned long max_physical_address);
+		size_t size,
+		size_t alignment,
+		unsigned long max_physical_address);
 
 extern void * mman_getVA(void * addr);
Index: uspace/lib/usb/src/usbmem.c
===================================================================
--- uspace/lib/usb/src/usbmem.c	(revision 78d15251805572d910e204fe8e1859a330c06692)
+++ uspace/lib/usb/src/usbmem.c	(revision ff244e6b3c292cefe297c5e3d258f40aa520583d)
@@ -1,4 +1,4 @@
 /*
- * Copyright (c) 2011 Matus Dekanek
+ * Copyright (c) 2010 Matus Dekanek
  * All rights reserved.
  *
@@ -69,5 +69,5 @@
 }
 
-static void addr_remove_callback(link_t * item)
+static void addr_remove_callback(link_t *item)
 {
 	//delete item
