~cyphermox/shim/0.8

« back to all changes in this revision

Viewing changes to lib/console.c

  • Committer: Peter Jones
  • Date: 2013-10-03 15:11:09 UTC
  • mto: (0.1.6)
  • mto: This revision was merged to the branch mainline in revision 92.
  • Revision ID: git-v1:fc986307fb200fdf493b9dd083ad39ae3561b0c9
Add ident-like blobs to shim.efi for version checking.

I feel dirty.

Show diffs side-by-side

added added

removed removed

Lines of Context:
312
312
        console_alertbox(str_arr);
313
313
}
314
314
 
 
315
void
 
316
console_notify_ascii(CHAR8 *string)
 
317
{
 
318
        CHAR16 *str = AllocateZeroPool((strlena(string) + 1) * 2);
 
319
        int i, j;
 
320
 
 
321
        if (!str)
 
322
                return;
 
323
 
 
324
        for (i = 0, j = 1; string[i] != '\0'; i++, j+=2)
 
325
                str[j] = string[i];
 
326
        console_notify(str);
 
327
}
 
328
 
315
329
#define ARRAY_SIZE(a) (sizeof (a) / sizeof ((a)[0]))
316
330
 
317
331
/* Copy of gnu-efi-3.0 with the added secure boot strings */