VirtualBox

Changeset 3200 in kBuild for trunk/src/kmk/output.c


Ignore:
Timestamp:
Mar 28, 2018 8:32:11 PM (6 years ago)
Author:
bird
Message:

kmk,kWorker: Some fixes wrt output capture and ctrl-c.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/output.c

    r3195 r3200  
    131131              const char *nl = (const char *)memchr (src, '\n', len);
    132132              size_t line_len = nl ? nl - (const char *)src + 1 : len;
    133               char *tmp = (char *)xmalloc (2 + line_len + 1);
    134               tmp[0] = '>';
    135               tmp[1] = ' ';
    136               memcpy (&tmp[2], src, line_len);
     133              char *tmp = (char *)xmalloc (1 + line_len + 1 + 1);
     134              tmp[0] = '{';
     135              memcpy (&tmp[1], src, line_len);
     136              tmp[1 + line_len] = '}';
    137137#  ifdef KBUILD_OS_WINDOWS
    138               maybe_con_fwrite (tmp, 2 + line_len, 1, dst);
     138              maybe_con_fwrite (tmp, 1 + line_len + 1, 1, dst);
    139139#  else
    140               fwrite (tmp, 2 + line_len, 1, dst);
     140              fwrite (tmp, 1 + line_len + 1, 1, dst);
    141141#  endif
    142142              free (tmp);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette