Staging: rt28x0: remove __LINE__ instances
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 11 Dec 2009 20:23:13 +0000 (12:23 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 20:23:13 +0000 (12:23 -0800)
Remove instances of __LINE__ preprocessor directive to make
validation of resulting binary output files easier.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rt2860/common/mlme.c
drivers/staging/rt2860/common/rtmp_init.c
drivers/staging/rt2860/pci_main_dev.c

index 9fa853eba672104ef938118427062d2eebdb7418..9c250c2b3294d4660fcf9b5b499c181a63929ac8 100644 (file)
@@ -1222,13 +1222,11 @@ if (OPSTATUS_TEST_FLAG(pAd, fOP_STATUS_PCIE_DEVICE))
                        {
                        if (pAd->StaCfg.PSControl.field.EnableNewPS == TRUE)
        {
-                               DBGPRINT(RT_DEBUG_TRACE, ("%s::%d\n",__FUNCTION__,__LINE__));
-
+                               DBGPRINT(RT_DEBUG_TRACE, ("%s\n", __func__));
                                RT28xxPciAsicRadioOff(pAd, GUI_IDLE_POWER_SAVE, 0);
                                }
                        else
                                {
-                               DBGPRINT(RT_DEBUG_TRACE, ("%s::%d\n",__FUNCTION__,__LINE__));
                                AsicSendCommandToMcu(pAd, 0x30, PowerSafeCID, 0xff, 0x2);
                                // Wait command success
                                AsicCheckCommanOk(pAd, PowerSafeCID);
@@ -1240,12 +1238,11 @@ if (OPSTATUS_TEST_FLAG(pAd, fOP_STATUS_PCIE_DEVICE))
                 {
                        if (pAd->StaCfg.PSControl.field.EnableNewPS == TRUE)
                                {
-                               DBGPRINT(RT_DEBUG_TRACE, ("%s::%d\n",__FUNCTION__,__LINE__));
+                               DBGPRINT(RT_DEBUG_TRACE, ("%s\n", __func__));
                                RT28xxPciAsicRadioOff(pAd, GUI_IDLE_POWER_SAVE, 0);
                                 }
                                else
                                {
-                               DBGPRINT(RT_DEBUG_TRACE, ("%s::%d\n",__FUNCTION__,__LINE__));
                                AsicSendCommandToMcu(pAd, 0x30, PowerSafeCID, 0xff, 0x02);
                                // Wait command success
                                AsicCheckCommanOk(pAd, PowerSafeCID);
index 5deba8d698c5f1733d34656b776d84256bd1350f..1cc6e44e257e52250591d63362b80d7f8f51caa4 100644 (file)
@@ -1261,7 +1261,8 @@ VOID      NICInitAsicFromEEPROM(
                        && (pAd->StaCfg.PSControl.field.rt30xxPowerMode == 3)
                        && (pAd->StaCfg.PSControl.field.EnableNewPS == TRUE))
                {
-                       DBGPRINT(RT_DEBUG_TRACE,("%s::%d,release Mcu Lock\n",__FUNCTION__,__LINE__));
+                       DBGPRINT(RT_DEBUG_TRACE,
+                               ("%s, release Mcu Lock\n", __func__));
                        RTMP_SEM_LOCK(&pAd->McuCmdLock);
                        pAd->brt30xxBanMcuCmd = FALSE;
                        RTMP_SEM_UNLOCK(&pAd->McuCmdLock);
index 38bc429067e27e012cbac8618c133db30977d841..2c51d9d4f3974d16961f5ba0118f5fc653a36c23 100644 (file)
@@ -599,7 +599,6 @@ VOID RTMPInitPCIeLinkCtrlValue(
                                }
 
                                DBGPRINT(RT_DEBUG_TRACE, ("====> rt28xx Write 0x83 Command = 0x%x.\n", PCIePowerSaveLevel));
-                                              printk("\n\n\n%s:%d\n",__FUNCTION__,__LINE__);
 
                                AsicSendCommandToMcu(pAd, 0x83, 0xff, (UCHAR)PCIePowerSaveLevel, 0x00);
                        }