Staging: bcm: Shortened lines in SetupTargetDsxBuffers()
authorMatthias Beyer <mail@beyermatthias.de>
Fri, 23 May 2014 20:23:46 +0000 (22:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 22:26:36 +0000 (07:26 +0900)
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/bcm/CmHost.c

index 9fea9a8a46aef6b8b052c4ea7f99d91a59a2394d..2743d16e5912e7e325b23ee29ca0662f33b65785 100644 (file)
@@ -1492,31 +1492,44 @@ ULONG SetUpTargetDsxBuffers(struct bcm_mini_adapter *Adapter)
        int Status;
 
        if (!Adapter) {
-               BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL, "Adapter was NULL!!!");
+               BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL,
+                               "Adapter was NULL!!!");
                return 0;
        }
 
        if (Adapter->astTargetDsxBuffer[0].ulTargetDsxBuffer)
                return 1;
 
-       BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL, "Size of Each DSX Buffer(Also size of connection manager parameters): %zx ", sizeof(struct bcm_connect_mgr_params));
-       BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL, "Reading DSX buffer From Target location %x ", DSX_MESSAGE_EXCHANGE_BUFFER);
+       BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL,
+                       "Size of Each DSX Buffer(Also size of connection manager parameters): %zx ",
+                       sizeof(struct bcm_connect_mgr_params));
+       BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL,
+                       "Reading DSX buffer From Target location %x ",
+                       DSX_MESSAGE_EXCHANGE_BUFFER);
 
-       Status = rdmalt(Adapter, DSX_MESSAGE_EXCHANGE_BUFFER, (PUINT)&ulTargetDsxBuffersBase, sizeof(UINT));
+       Status = rdmalt(Adapter, DSX_MESSAGE_EXCHANGE_BUFFER,
+                       (PUINT)&ulTargetDsxBuffersBase, sizeof(UINT));
        if (Status < 0) {
-               BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL, "RDM failed!!");
+               BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL,
+                               "RDM failed!!");
                return 0;
        }
 
-       BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL, "Base Address Of DSX  Target Buffer : 0x%lx", ulTargetDsxBuffersBase);
-       BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL,  "Tgt Buffer is Now %lx :", ulTargetDsxBuffersBase);
-       ulCntTargetBuffers = DSX_MESSAGE_EXCHANGE_BUFFER_SIZE / sizeof(struct bcm_connect_mgr_params);
+       BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL,
+                       "Base Address Of DSX  Target Buffer : 0x%lx",
+                       ulTargetDsxBuffersBase);
+       BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL,
+                       "Tgt Buffer is Now %lx :", ulTargetDsxBuffersBase);
+       ulCntTargetBuffers = DSX_MESSAGE_EXCHANGE_BUFFER_SIZE /
+               sizeof(struct bcm_connect_mgr_params);
 
        Adapter->ulTotalTargetBuffersAvailable =
                ulCntTargetBuffers > MAX_TARGET_DSX_BUFFERS ?
                MAX_TARGET_DSX_BUFFERS : ulCntTargetBuffers;
 
-       BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL, " Total Target DSX Buffer setup %lx ", Adapter->ulTotalTargetBuffersAvailable);
+       BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL,
+                       " Total Target DSX Buffer setup %lx ",
+                       Adapter->ulTotalTargetBuffersAvailable);
 
        for (i = 0; i < Adapter->ulTotalTargetBuffersAvailable; i++) {
                Adapter->astTargetDsxBuffer[i].ulTargetDsxBuffer = ulTargetDsxBuffersBase;