Ignore:
Timestamp:
Oct 10, 2020, 6:38:47 PM (4 years ago)
Author:
alain
Message:

typos...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/kern/ksocket.c

    r662 r668  
    11571157    thread_t  * this      = CURRENT_THREAD;
    11581158    xptr_t      client_xp = XPTR( local_cxy , this );
     1159    pid_t       pid       = this->process->pid;
     1160    trdid_t     trdid     = this->trdid;
    11591161
    11601162    // get pointers on file descriptor
     
    11761178#if DEBUG_SOCKET_CONNECT
    11771179uint32_t cycle = (uint32_t)hal_get_cycles();
    1178 pid_t    pid   = this->process->pid;
    1179 trdid_t  trdid = this->trdid;
    11801180if( DEBUG_SOCKET_CONNECT < cycle )
    11811181printk("\n[%s] thread[%x,%x] enter for socket[%x,%d] / addr %x / port %d / cycle %d\n",
     
    13281328    thread_t   * this      = CURRENT_THREAD;
    13291329    xptr_t       client_xp = XPTR( local_cxy , this );
    1330     process_t  * process   = this->process;
     1330    pid_t        pid       = this->process->pid;
     1331    trdid_t      trdid     = this->trdid;
    13311332
    13321333    // get pointer on socket descriptor
     
    13401341#if DEBUG_SOCKET_CLOSE
    13411342uint32_t cycle = (uint32_t)hal_get_cycles();
    1342 pid_t    pid   = this->process->pid;
    13431343if (DEBUG_SOCKET_CLOSE < cycle )
    13441344printk("\n[%s] thread[%x,%x] enters for socket[%x,%d] / cycle %d\n",
    1345 __FUNCTION__, pid, this->trdid, pid, fdid, cycle );
     1345__FUNCTION__, pid, trdid, pid, fdid, cycle );
    13461346#endif
    13471347
     
    13601360                   
    13611361        printk("\n[ERROR] in %s : previous TX cmd on socket[%x,%d] / thread[%x,%x]\n",
    1362         __FUNCTION__, process->pid, fdid, process->pid, this->trdid );
     1362        __FUNCTION__, pid, fdid, pid, trdid );
    13631363        return -1;
    13641364    }
     
    13811381if( cycle > DEBUG_DEV_NIC_TX )
    13821382printk("\n[%s] thread[%x,%x] socket[%x,%d] %s / destroy socket / cycle %d\n",
    1383 __FUNCTION__, this->process->pid, this->trdid, pid, fdid,
    1384 socket_state_str( socket_state ), cycle );
     1383__FUNCTION__, pid, trdid, pid, fdid, socket_state_str( socket_state ), cycle );
    13851384#endif
    13861385        // directly destroy socket
     
    13981397if( cycle > DEBUG_DEV_NIC_TX )
    13991398printk("\n[%s] thread[%x,%x] socket[%x,%d] %s / destroy socket / cycle %d\n",
    1400 __FUNCTION__, this->process->pid, this->trdid, pid, fdid,
    1401 socket_state_str( socket_state ), cycle );
     1399__FUNCTION__, pid, trdid, pid, fdid, socket_state_str( socket_state ), cycle );
    14021400#endif
    14031401        // directly destroy socket
     
    14321430if( DEBUG_SOCKET_CLOSE < cycle )
    14331431printk("\n[%s] thread[%x,%x] socket[%x,%d] blocks on <IO> waiting close / cycle %d \n",
    1434 __FUNCTION__, pid, this->trdid, pid, fdid, cycle );
     1432__FUNCTION__, pid, trdid, pid, fdid, cycle );
    14351433#endif
    14361434        // block itself and deschedule
     
    14421440if( DEBUG_SOCKET_CLOSE < cycle )
    14431441printk("\n[%s] thread[%x,%x] socket[%x,%d] / resumes / cycle %d \n",
    1444 __FUNCTION__, pid, this->trdid, pid, fdid, cycle );
     1442__FUNCTION__, pid, trdid, pid, fdid, cycle );
    14451443#endif
    14461444        // take socket lock
     
    14741472if( DEBUG_SOCKET_CLOSE < cycle )
    14751473printk("\n[%s] thread[%x,%x] socket[%x,%d] / destroy socket / cycle %d\n",
    1476 __FUNCTION__, pid, this->trdid, pid, fdid, socket_state_str(socket_state) , cycle );
     1474__FUNCTION__, pid, trdid, pid, fdid, socket_state_str(socket_state) , cycle );
    14771475#endif
    14781476            // destroy socket
Note: See TracChangeset for help on using the changeset viewer.