Changeset 521


Ignore:
Timestamp:
Jul 21, 2010, 7:13:21 PM (15 years ago)
Author:
David Azarewicz
Message:

Debug statement cleanup

Location:
GPL/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk/alsa-kernel/include/sound/config.h

    r464 r521  
    8383#define CONFIG_PM
    8484#define CONFIG_PROC_FS
     85#ifdef DEBUG
    8586#define CONFIG_SND_DEBUG_DETECT
    8687#define CONFIG_SND_DEBUG_VERBOSE
     88#endif
    8789#define CONFIG_SND_DMA_SGBUF
    8890#define CONFIG_SND_HDA_CODEC_ANALOG
  • GPL/trunk/alsa-kernel/pci/hda/hda_hwdep.c

    r464 r521  
    9999{
    100100#ifndef CONFIG_SND_DEBUG_VERBOSE
    101         if (!capable(CAP_SYS_RAWIO))
    102                 return -EACCES;
     101//      if (!capable(CAP_SYS_RAWIO))
     102//              return -EACCES;
    103103#endif
    104104        return 0;
  • GPL/trunk/drv32/strategy.c

    r518 r521  
    7070        RPInit __far* rp = (RPInit __far*)_rp;
    7171        rc = DiscardableInit(rp);
    72         dprintf(("StratInit End rc=%d", rc));
     72        //dprintf(("StratInit End rc=%d", rc));
    7373        return rc;
    7474}
     
    119119#endif
    120120//PS++ End
    121         dprintf(("StratInitComplete"));
    122   return(RPDONE);
     121        //dprintf(("StratInitComplete"));
     122        return(RPDONE);
    123123}
    124124//******************************************************************************
     
    130130        RPShutdown __far *rp = (RPShutdown __far *)_rp;
    131131
    132         dprintf(("StratShutdown Start %d", rp->Function));
     132        //dprintf(("StratShutdown %d", rp->Function));
    133133        if(rp->Function == 1) {//end of shutdown
    134134                OSS32_Shutdown();
    135135        }
    136         dprintf(("StratShutdown End"));
    137   return(RPDONE);
     136        return(RPDONE);
    138137}
    139138//******************************************************************************
  • GPL/trunk/include/dbgos2.h

    r518 r521  
    3232extern int wrOffset;
    3333extern char *szprintBuf;
    34 //void _cdecl DPE(char *x, ...) ; /* not debugging: nothing */
    3534int _cdecl printk(const char * fmt, ...);
    3635#ifdef __cplusplus
  • GPL/trunk/lib32/misc.c

    r518 r521  
    409409//******************************************************************************
    410410//******************************************************************************
    411 #define del_timer_sync(t) del_timer(t) /* FIXME: not quite correct on SMP */
    412 int cancel_delayed_work(struct delayed_work *dwork)
    413 {
    414         struct work_struct *work = &dwork->work;
    415         int ret;
    416 
    417         ret = del_timer_sync(&work->timer);
    418         if (ret)
    419                 clear_bit(0, &work->pending);
    420         return ret;
    421 }
    422 //******************************************************************************
    423 //******************************************************************************
    424 int schedule_work(struct work_struct *works)
    425 {
    426 #ifndef TARGET_OS2
    427         return kernel_thread(work_caller, works, 0) >= 0;
    428 #else
    429         return 1;
    430 #endif
    431 }
    432 //******************************************************************************
    433 //******************************************************************************
    434 static void delayed_work_timer_fn(unsigned long __data)
    435 {
    436         struct work_struct *work = (struct work_struct *)__data;
    437         struct workqueue_struct *wq = work->wq_data;
    438        
    439         if (wq)
    440                 __x_queue_work(wq, work);
    441         else
    442                 schedule_work(work);
    443 }
    444 //******************************************************************************
    445 //******************************************************************************
    446 int queue_delayed_work(struct workqueue_struct *wq, struct delayed_work *dwork, unsigned long delay)
    447 {
    448         struct work_struct *work = &dwork->work;
    449         struct timer_list *timer = &work->timer;
    450 
    451         if (!test_and_set_bit(0, &work->pending)) {
    452                 work->wq_data = wq;
    453                 timer->expires = jiffies + delay;
    454                 timer->data = (unsigned long)work;
    455                 timer->function = delayed_work_timer_fn;
    456                 add_timer(timer);
    457                 return 1;
    458         }
    459         return 0;
    460 }
    461 //******************************************************************************
    462 //******************************************************************************
    463 /* Greatest common divisor */
    464 unsigned long gcd(unsigned long a, unsigned long b)
    465 {
    466         unsigned long r;
    467         if (a < b) {
    468                 r = a;
    469                 a = b;
    470                 b = r;
    471         }
    472         while ((r = a % b) != 0) {
    473                 a = b;
    474                 b = r;
    475         }
    476         return b;
    477 }
    478 
    479 //******************************************************************************
    480 //******************************************************************************
    481 int strict_strtoul(const char *cp, unsigned int base, unsigned long *res)
    482 {
    483         char *tail;
    484         unsigned long val;
    485         size_t len;
    486 
    487         *res = 0;
    488         len = strlen(cp);
    489         if (len == 0)
    490                 return -EINVAL;
    491 
    492         val = simple_strtoul(cp, &tail, base);
    493         if (tail == cp)
    494                 return -EINVAL;
    495 
    496         if ((*tail == '\0') ||
    497                 ((len == (size_t)(tail - cp) + 1) && (*tail == '\n'))) {
    498                 *res = val;
    499                 return 0;
    500         }
    501 
    502         return -EINVAL;
    503 }
     411
  • GPL/trunk/lib32/ossidc.cpp

    r518 r521  
    162162                        FillCaps(i);
    163163                }
    164                 dprintf(("OSS32_Initialize: SUCCESS. Cards=%d", nrCardsDetected));
     164                rprintf(("OSS32_Initialize: SUCCESS. Cards=%d", nrCardsDetected));
    165165                return OSSERR_SUCCESS;
    166166        }
     
    173173OSSRET OSS32_Shutdown()
    174174{
    175         dprintf(("OSS32_Shutdown 1"));
    176175        CallOSS16(IDC16_EXIT, 0, 0);
    177         dprintf(("OSS32_Shutdown 2"));
    178176
    179177        for(int i=0;i<nrCardsDetected;i++) {
     
    181179        }
    182180
    183         dprintf(("OSS32_Shutdown 3"));
    184181        call_module_exit(alsa_mpu401_uart_exit);
    185         dprintf(("OSS32_Shutdown 4"));
    186182        call_module_exit(alsa_opl3_seq_exit);
    187         dprintf(("OSS32_Shutdown 5"));
    188183        call_module_exit(alsa_opl3_exit);
    189         dprintf(("OSS32_Shutdown 6"));
    190184        call_module_exit(alsa_seq_exit);
    191         dprintf(("OSS32_Shutdown 7"));
    192185        call_module_exit(alsa_rawmidi_exit);
    193         dprintf(("OSS32_Shutdown 8"));
    194186        call_module_exit(alsa_timer_exit);
    195         dprintf(("OSS32_Shutdown 9"));
    196187        call_module_exit(alsa_hwdep_exit);
    197         dprintf(("OSS32_Shutdown 10"));
    198188        call_module_exit(alsa_pcm_exit);
    199         dprintf(("OSS32_Shutdown 11"));
    200189        call_module_exit(alsa_sound_exit);
    201         dprintf(("OSS32_Shutdown 12"));
    202190
    203191        return OSSERR_SUCCESS;
  • GPL/trunk/uniaud.inc

    r518 r521  
    1313# ex RC3  GA  FIXPACK2 beta_47
    1414# Comment out to avoid a fixpack line in bldlevel
    15 FIXPACK = SVN r518
     15FIXPACK = SVN r520
    1616
    1717# ALSA BUILD VERSION
Note: See TracChangeset for help on using the changeset viewer.