LOGIN   :::   RECOVER PASS   :::   GET ACCOUNT    
Browse
  • Projects
  • Code (CVS)
  • Forums
  • News
  • Articles
  • Polls
  •  
    OpenCores
  • FAQ
  • CVS HowTo
  • Mission
  • Media
  • Tools
  • Advertise
  • Mirrors
  • Logos
  • Contact us
  • Find Resources
  • Job Opportunity
  •  
    Tools
  • Search
      
  • Download Cores (CVSGet)
  •  
    More
  • Wishbone
  • Perlilog
  • EDA tools
  • OpenTech CD
  •  
    Navigation: All forums > Openrisc > Message List > Message Post

    Message

    Reply | Reply all
    Date Prev | Date Next | Thread Prev | Thread Next Date Index | Thread Index

    From: György 'nog' Jeney<nog@s...>
    Date: Fri May 20 21:29:48 CEST 2005
    Subject: [openrisc] [or1ksim #93] Make the vapi use the new debugging functions
    Top
    Hi,

    Changelog says it all.

    ChangeLog:
    * Make the vapi use the new debugging functions.

    nog.
    -------------- next part --------------
    --- vapi/vapi.c 2005-02-25 16:58:33.000000000 +0100
    +++ ../or1ksim-ac/vapi/vapi.c 2005-05-20 21:13:20.000000000 +0200
    @@ -51,6 +51,8 @@
    #include "vapi.h"
    #include "debug.h"

    +DEFAULT_DEBUG_CHANNEL(vapi);
    +
    static unsigned int serverIP = 0;

    static unsigned int server_fd = 0;
    @@ -424,7 +426,7 @@
    }

    vapi_write_log_file (VAPI_COMMAND_REQUEST, id, data);
    - debug (4, "[%08lx, %08lx]\n", id, data);
    + TRACE ("[%08lx, %08lx]\n", id, data);

    /* This packet may be for another handler */
    if (!handler_fits_id (t, id))
    @@ -444,7 +446,7 @@
    exit (1);
    }

    - debug(5, ".");
    + TRACE(".");

    /* Handle everything in queue. */
    while(1) {
    @@ -550,7 +552,7 @@
    {
    struct vapi_handler *tt;

    - debug(4, "vapi_install_handler %08lx, %lu, %08p\n", base_id, num_ids, read_func);
    + TRACE("vapi_install_handler %08lx, %lu, %p\n", base_id, num_ids, read_func);
    if (read_func == NULL) {
    struct vapi_handler **t = &vapi_handler;
    while ((*t) && !handler_fits_id (*t, base_id))
    @@ -600,7 +602,7 @@
    /* Sends a packet to specified test */
    int vapi_send (unsigned long id, unsigned long data)
    {
    - debug (4, "vapi_send [%08lx %08lx]\n", id, data);
    + TRACE ("vapi_send [%08lx %08lx]\n", id, data);
    vapi_write_log_file (VAPI_COMMAND_SEND, id, data);
    write_packet (id, data);
    }
    --- support/dbchs.h 2005-05-20 21:10:48.000000000 +0200
    +++ ../or1ksim-ac/support/dbchs.h 2005-05-20 21:12:33.000000000 +0200
    @@ -31,3 +31,4 @@ DECLARE_DEBUG_CHANNEL(ata)
    DECLARE_DEBUG_CHANNEL(gpio)
    DECLARE_DEBUG_CHANNEL(mc)
    DECLARE_DEBUG_CHANNEL(dma)
    +DECLARE_DEBUG_CHANNEL(vapi)

     
    Copyright (c) 1999 OPENCORES.ORG. All rights reserved.