Changeset 13376


Ignore:
Timestamp:
Jan 11, 2010, 8:10:25 PM (10 years ago)
Author:
rme
Message:

load_image: use %ls format string directive when complaining about
being unable to load a heap image (on Windows, the variable "path"
will is a wchar_t *).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/lisp-kernel/pmcl-kernel.c

    r13375 r13376  
    21752175  }
    21762176  if (image_nil == 0) {
     2177#ifdef WINDOWS
     2178    char *fmt = "Couldn't load lisp heap image from %ls";
     2179#else
     2180    char *fmt = "Couldn't load lisp heap image from %s";
     2181#endif
     2182
     2183    fprintf(dbgout, fmt, path);
    21772184    if (err == 0) {
    2178       fprintf(dbgout, "Couldn't load lisp heap image from %s\n", path);
     2185      fprintf(dbgout, "\n");
    21792186    } else {
    2180       fprintf(dbgout, "Couldn't load lisp heap image from %s:\n%s\n", path, strerror(err));
     2187      fprintf(dbgout, ": %s\n", strerror(err));
    21812188    }
    21822189    exit(-1);
Note: See TracChangeset for help on using the changeset viewer.