[rtems-libbsd commit] Remove debug output.

Chris Johns chrisj at rtems.org
Wed May 4 06:03:59 UTC 2016


Module:    rtems-libbsd
Branch:    master
Commit:    7b8f3362ae92bd115a1c10dd837b0d0b080ac045
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=7b8f3362ae92bd115a1c10dd837b0d0b080ac045

Author:    Chris Johns <chrisj at rtems.org>
Date:      Wed Apr 27 13:21:20 2016 +1000

Remove debug output.

---

 freebsd/sys/kern/subr_bus.c | 50 ++++++++++++++++++++++-----------------------
 1 file changed, 24 insertions(+), 26 deletions(-)

diff --git a/freebsd/sys/kern/subr_bus.c b/freebsd/sys/kern/subr_bus.c
index 1d07718..1f6443c 100644
--- a/freebsd/sys/kern/subr_bus.c
+++ b/freebsd/sys/kern/subr_bus.c
@@ -611,8 +611,6 @@ devctl_queue_data_f(char *data, int flags)
 		PROC_UNLOCK(p);
 	}
 	return;
-#else /* __rtems__ */
-	printf("devctl: %s", data);
 #endif /* __rtems__ */
 out:
 	/*
@@ -1133,7 +1131,7 @@ devclass_add_driver(devclass_t dc, driver_t *driver, int pass, devclass_t *dcp)
  * well as busclass.  Each layer will attempt to detach the driver
  * from any devices that are children of the bus's devclass.  The function
  * will return an error if a device fails to detach.
- * 
+ *
  * We do a full search here of the devclass list at each iteration
  * level to save storing children-lists in the devclass structure.  If
  * we ever move beyond a few dozen devices doing this, we may need to
@@ -1349,7 +1347,7 @@ devclass_get_name(devclass_t dc)
  *
  * @param dc		the devclass to search
  * @param unit		the unit number to search for
- * 
+ *
  * @returns		the device with the given unit number or @c
  *			NULL if there is no such device
  */
@@ -1366,7 +1364,7 @@ devclass_get_device(devclass_t dc, int unit)
  *
  * @param dc		the devclass to search
  * @param unit		the unit number to search for
- * 
+ *
  * @returns		the softc field of the device with the given
  *			unit number or @c NULL if there is no such
  *			device
@@ -1814,14 +1812,14 @@ device_print_child(device_t dev, device_t child)
  * This creates a new device and adds it as a child of an existing
  * parent device. The new device will be added after the last existing
  * child with order zero.
- * 
+ *
  * @param dev		the device which will be the parent of the
  *			new child device
  * @param name		devclass name for new device or @c NULL if not
  *			specified
  * @param unit		unit number for new device or @c -1 if not
  *			specified
- * 
+ *
  * @returns		the new device
  */
 device_t
@@ -1836,7 +1834,7 @@ device_add_child(device_t dev, const char *name, int unit)
  * This creates a new device and adds it as a child of an existing
  * parent device. The new device will be added after the last existing
  * child with the same order.
- * 
+ *
  * @param dev		the device which will be the parent of the
  *			new child device
  * @param order		a value which is used to partially sort the
@@ -1847,7 +1845,7 @@ device_add_child(device_t dev, const char *name, int unit)
  *			specified
  * @param unit		unit number for new device or @c -1 if not
  *			specified
- * 
+ *
  * @returns		the new device
  */
 device_t
@@ -1895,7 +1893,7 @@ device_add_child_ordered(device_t dev, u_int order, const char *name, int unit)
  * This function deletes a device along with all of its children. If
  * the device currently has a driver attached to it, the device is
  * detached first using device_detach().
- * 
+ *
  * @param dev		the parent device
  * @param child		the device to delete
  *
@@ -1938,7 +1936,7 @@ device_delete_child(device_t dev, device_t child)
  * any, using the device_delete_child() function for each device it
  * finds. If a child device cannot be deleted, this function will
  * return an error code.
- * 
+ *
  * @param dev		the parent device
  *
  * @retval 0		success
@@ -2760,7 +2758,7 @@ device_probe(device_t dev)
 		}
 		return (-1);
 	}
-	if ((error = device_probe_child(dev->parent, dev)) != 0) {		
+	if ((error = device_probe_child(dev->parent, dev)) != 0) {
 		if (bus_current_pass == BUS_PASS_DEFAULT &&
 		    !(dev->flags & DF_DONENOMATCH)) {
 			BUS_PROBE_NOMATCH(dev->parent, dev);
@@ -2992,7 +2990,7 @@ resource_list_init(struct resource_list *rl)
  * This function frees the memory for all resource entries on the list
  * (if any).
  *
- * @param rl		the resource list to free		
+ * @param rl		the resource list to free
  */
 void
 resource_list_free(struct resource_list *rl)
@@ -3202,7 +3200,7 @@ resource_list_delete(struct resource_list *rl, int type, int rid)
  * @param flags		any extra flags to control the resource
  *			allocation - see @c RF_XXX flags in
  *			<sys/rman.h> for details
- * 
+ *
  * @returns		the resource which was allocated or @c NULL if no
  *			resource could be allocated
  */
@@ -3259,7 +3257,7 @@ resource_list_reserve(struct resource_list *rl, device_t bus, device_t child,
  * @param flags		any extra flags to control the resource
  *			allocation - see @c RF_XXX flags in
  *			<sys/rman.h> for details
- * 
+ *
  * @returns		the resource which was allocated or @c NULL if no
  *			resource could be allocated
  */
@@ -3321,17 +3319,17 @@ resource_list_alloc(struct resource_list *rl, device_t bus, device_t child,
 
 /**
  * @brief Helper function for implementing BUS_RELEASE_RESOURCE()
- * 
+ *
  * Implement BUS_RELEASE_RESOURCE() using a resource list. Normally
  * used with resource_list_alloc().
- * 
+ *
  * @param rl		the resource list which was allocated from
  * @param bus		the parent device of @p child
  * @param child		the device which is requesting a release
  * @param type		the type of resource to release
  * @param rid		the resource identifier
  * @param res		the resource to release
- * 
+ *
  * @retval 0		success
  * @retval non-zero	a standard unix error code indicating what
  *			error condition prevented the operation
@@ -3389,7 +3387,7 @@ resource_list_release(struct resource_list *rl, device_t bus, device_t child,
  * @param type		the type of resource to release
  * @param rid		the resource identifier
  * @param res		the resource to release
- * 
+ *
  * @retval 0		success
  * @retval non-zero	a standard unix error code indicating what
  *			error condition prevented the operation
@@ -3429,7 +3427,7 @@ resource_list_unreserve(struct resource_list *rl, device_t bus, device_t child,
  * @param type		type type of resource entry to print
  * @param format	printf(9) format string to print resource
  *			start and end values
- * 
+ *
  * @returns		the number of characters printed
  */
 int
@@ -3464,7 +3462,7 @@ resource_list_print_type(struct resource_list *rl, const char *name, int type,
  * @brief Releases all the resources in a list.
  *
  * @param rl		The resource list to purge.
- * 
+ *
  * @returns		nothing
  */
 void
@@ -3687,7 +3685,7 @@ bus_generic_print_child(device_t dev, device_t child)
 
 /**
  * @brief Stub function for implementing BUS_READ_IVAR().
- * 
+ *
  * @returns ENOENT
  */
 int
@@ -3699,7 +3697,7 @@ bus_generic_read_ivar(device_t dev, device_t child, int index,
 
 /**
  * @brief Stub function for implementing BUS_WRITE_IVAR().
- * 
+ *
  * @returns ENOENT
  */
 int
@@ -3711,7 +3709,7 @@ bus_generic_write_ivar(device_t dev, device_t child, int index,
 
 /**
  * @brief Stub function for implementing BUS_GET_RESOURCE_LIST().
- * 
+ *
  * @returns NULL
  */
 struct resource_list *
@@ -3778,7 +3776,7 @@ bus_generic_new_pass(device_t dev)
  */
 int
 bus_generic_setup_intr(device_t dev, device_t child, struct resource *irq,
-    int flags, driver_filter_t *filter, driver_intr_t *intr, void *arg, 
+    int flags, driver_filter_t *filter, driver_intr_t *intr, void *arg,
     void **cookiep)
 {
 	/* Propagate up the bus hierarchy until someone handles it. */
@@ -4535,7 +4533,7 @@ DECLARE_MODULE(rootbus, root_bus_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST);
  *
  * This function begins the autoconfiguration process by calling
  * device_probe_and_attach() for each child of the @c root0 device.
- */ 
+ */
 void
 root_bus_configure(void)
 {



More information about the vc mailing list