Changeset 641


Ignore:
Timestamp:
Jul 20, 2015, 6:25:13 PM (9 years ago)
Author:
guerin
Message:

stdio: add %% support for printf()

Location:
soft/giet_vm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/applications/shell/main.c

    r640 r641  
    126126        }
    127127        i += len;
    128         giet_tty_printf("wrote %d/%d (%d)\n", i, size, 100*i/size);
     128        giet_tty_printf("wrote %d/%d (%d%%)\n", i, size, 100*i/size);
    129129    }
    130130
  • soft/giet_vm/giet_libs/stdio.c

    r628 r641  
    187187        {
    188188            case ('%'):
     189            {
     190                len = 1;
     191                pbuf = "%";
     192                break;
     193            }
    189194            case ('c'):             /* char conversion */
    190195            {
Note: See TracChangeset for help on using the changeset viewer.