[rtems commit] Remove double count of start offset

Sebastian Huber sebh at rtems.org
Thu Oct 17 06:54:23 UTC 2013


Module:    rtems
Branch:    master
Commit:    865c3072428ebd9155cec5c40b8cf075c7c569ed
Changeset: http://git.rtems.org/rtems/commit/?id=865c3072428ebd9155cec5c40b8cf075c7c569ed

Author:    Ric Claus <claus at slac.stanford.edu>
Date:      Wed Oct 16 19:15:18 2013 -0700

Remove double count of start offset

---

 cpukit/libblock/src/bdbuf.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/cpukit/libblock/src/bdbuf.c b/cpukit/libblock/src/bdbuf.c
index 9f5274c..07f479f 100644
--- a/cpukit/libblock/src/bdbuf.c
+++ b/cpukit/libblock/src/bdbuf.c
@@ -2207,7 +2207,7 @@ rtems_bdbuf_read (rtems_disk_device   *dd,
   {
     if (rtems_bdbuf_tracer)
       printf ("bdbuf:read: %" PRIu32 " (%" PRIu32 ") (dev = %08x)\n",
-              media_block + dd->start, block, (unsigned) dd->dev);
+              media_block, block, (unsigned) dd->dev);
 
     bd = rtems_bdbuf_get_buffer_for_access (dd, media_block);
     switch (bd->state)
@@ -2532,7 +2532,7 @@ rtems_bdbuf_swapout_modified_processing (rtems_disk_device  **dd_ptr,
   {
     rtems_chain_node* node = rtems_chain_head (chain);
     bool              sync_all;
-    
+
     node = node->next;
 
     /*
@@ -2542,7 +2542,7 @@ rtems_bdbuf_swapout_modified_processing (rtems_disk_device  **dd_ptr,
       sync_all = true;
     else
       sync_all = false;
-    
+
     while (!rtems_chain_is_tail (chain, node))
     {
       rtems_bdbuf_buffer* bd = (rtems_bdbuf_buffer*) node;
@@ -2675,7 +2675,7 @@ rtems_bdbuf_swapout_processing (unsigned long                 timer_delta,
   rtems_chain_initialize_empty (&transfer->bds);
   transfer->dd = BDBUF_INVALID_DEV;
   transfer->syncing = bdbuf_cache.sync_active;
-  
+
   /*
    * When the sync is for a device limit the sync to that device. If the sync
    * is for a buffer handle process the devices in the order on the sync
@@ -2683,7 +2683,7 @@ rtems_bdbuf_swapout_processing (unsigned long                 timer_delta,
    */
   if (bdbuf_cache.sync_active)
     transfer->dd = bdbuf_cache.sync_device;
-    
+
   /*
    * If we have any buffers in the sync queue move them to the modified
    * list. The first sync buffer will select the device we use.




More information about the vc mailing list