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 > Cvs-checkins > Message List > Message Post

    Message

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

    From: cvs at opencores.org<cvs@o...>
    Date: Wed May 21 14:46:40 CEST 2008
    Subject: [cvs-checkins] MODIFIED: mlite ...
    Top
    Date: 00/08/05 21:14:46

    Modified: mlite/kernel libc.c
    Log:
    sprintf() will add '\r' before '\n'


    Revision Changes Path
    1.12 mlite/kernel/libc.c

    http://www.opencores.org/cvsweb.shtml/mlite/kernel/libc.c.diff?r1=1.11&r2=1.12

    (In the diff below, changes in quantity of whitespace are not shown.)

    Index: libc.c
    ===================================================================
    RCS file: /cvsroot/rhoads/mlite/kernel/libc.c,v
    retrieving revision 1.11
    retrieving revision 1.12
    diff -u -b -r1.11 -r1.12
    --- libc.c 19 Feb 2008 03:20:14 -0000 1.11
    +++ libc.c 21 May 2008 12:46:40 -0000 1.12
    @@ -349,21 +349,13 @@
    }
    s += strlen(s);
    }
    - else if(f == '\\')
    - {
    - f = *format++;
    - if(f == 0)
    - return argc;
    - else if(f == 'n')
    - *s++ = '\n';
    - else if(f == 'r')
    - *s++ = '\r';
    - else if(f == 't')
    - *s++ = '\t';
    - }
    else
    {
    + if(f == '\n')
    + *s++ = '\r';
    *s++ = f;
    + if(f == '\r' && *format == '\n')
    + *s++ = *format++;
    }
    *s = 0;
    }



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