if(!sv.active)
{
- VM_Warning(prog, "VM_bprint: game is not server(%s) !\n", prog->name);
+ VM_Warning(prog, "VM_bprint: server is not active!\n");
return;
}
clientnum = (int)PRVM_G_FLOAT(OFS_PARM0);
if (!sv.active || clientnum < 0 || clientnum >= svs.maxclients || !svs.clients[clientnum].active)
{
- VM_Warning(prog, "VM_sprint: %s: invalid client or server is not active !\n", prog->name);
+ VM_Warning(prog, "VM_sprint: invalid client or server is not active!\n");
return;
}
if(!S_LocalSoundEx(s, chan, vol))
{
PRVM_G_FLOAT(OFS_RETURN) = -4;
- VM_Warning(prog, "VM_localsound: Failed to play %s for %s !\n", s, prog->name);
+ VM_Warning(prog, "VM_localsound: Failed to play %s !\n", s);
return;
}
}
else if(!S_LocalSound (s))
{
PRVM_G_FLOAT(OFS_RETURN) = -4;
- VM_Warning(prog, "VM_localsound: Failed to play %s for %s !\n", s, prog->name);
+ VM_Warning(prog, "VM_localsound: Failed to play %s !\n", s);
return;
}
if(snd_initialized.integer && !S_PrecacheSound(s, true, true))
{
- VM_Warning(prog, "VM_precache_sound: Failed to load %s for %s\n", s, prog->name);
+ VM_Warning(prog, "VM_precache_sound: Failed to load %s !\n", s);
return;
}
}
if(!sv.active)
{
- VM_Warning(prog, "VM_changelevel: game is not server (%s)\n", prog->name);
+ VM_Warning(prog, "VM_changelevel: server is not active!\n");
return;
}
if (filenum >= PRVM_MAX_OPENFILES)
{
PRVM_G_FLOAT(OFS_RETURN) = -2;
- VM_Warning(prog, "VM_fopen: %s ran out of file handles (%i)\n", prog->name, PRVM_MAX_OPENFILES);
+ VM_Warning(prog, "VM_fopen: ran out of file handles (max %i)\n", PRVM_MAX_OPENFILES);
return;
}
filename = PRVM_G_STRING(OFS_PARM0);
break;
default:
PRVM_G_FLOAT(OFS_RETURN) = -3;
- VM_Warning(prog, "VM_fopen: %s: no such mode %i (valid: 0 = read, 1 = append, 2 = write)\n", prog->name, mode);
+ VM_Warning(prog, "VM_fopen: no such mode %i (valid: 0 = read, 1 = append, 2 = write)\n", mode);
return;
}
{
PRVM_G_FLOAT(OFS_RETURN) = -1;
if (developer_extra.integer)
- VM_Warning(prog, "VM_fopen: %s: %s mode %s failed\n", prog->name, filename, modestring);
+ VM_Warning(prog, "VM_fopen: %s mode %s failed\n", filename, modestring);
}
else
{
filenum = (int)PRVM_G_FLOAT(OFS_PARM0);
if (filenum < 0 || filenum >= PRVM_MAX_OPENFILES)
{
- VM_Warning(prog, "VM_fclose: invalid file handle %i used in %s\n", filenum, prog->name);
+ VM_Warning(prog, "VM_fclose: invalid file handle %i\n", filenum);
return;
}
if (prog->openfiles[filenum] == NULL)
{
- VM_Warning(prog, "VM_fclose: no such file handle %i (or file has been closed) in %s\n", filenum, prog->name);
+ VM_Warning(prog, "VM_fclose: no such file handle %i (or file has been closed)\n", filenum);
return;
}
FS_Close(prog->openfiles[filenum]);
filenum = (int)PRVM_G_FLOAT(OFS_PARM0);
if (filenum < 0 || filenum >= PRVM_MAX_OPENFILES)
{
- VM_Warning(prog, "VM_fgets: invalid file handle %i used in %s\n", filenum, prog->name);
+ VM_Warning(prog, "VM_fgets: invalid file handle %i\n", filenum);
return;
}
if (prog->openfiles[filenum] == NULL)
{
- VM_Warning(prog, "VM_fgets: no such file handle %i (or file has been closed) in %s\n", filenum, prog->name);
+ VM_Warning(prog, "VM_fgets: no such file handle %i (or file has been closed)\n", filenum);
return;
}
end = 0;
filenum = (int)PRVM_G_FLOAT(OFS_PARM0);
if (filenum < 0 || filenum >= PRVM_MAX_OPENFILES)
{
- VM_Warning(prog, "VM_fputs: invalid file handle %i used in %s\n", filenum, prog->name);
+ VM_Warning(prog, "VM_fputs: invalid file handle %i\n", filenum);
return;
}
if (prog->openfiles[filenum] == NULL)
{
- VM_Warning(prog, "VM_fputs: no such file handle %i (or file has been closed) in %s\n", filenum, prog->name);
+ VM_Warning(prog, "VM_fputs: no such file handle %i (or file has been closed)\n", filenum);
return;
}
stringlength = VM_VarString(prog, 1, string, sizeof(string));
ent = PRVM_G_EDICT(OFS_PARM1);
if(ent->free)
{
- VM_Warning(prog, "VM_writetofile: %s: entity %i is free !\n", prog->name, PRVM_NUM_FOR_EDICT(ent));
+ VM_Warning(prog, "VM_writetofile: entity %i is free!\n", PRVM_NUM_FOR_EDICT(ent));
return;
}
if (i < 0 || i >= prog->numfielddefs)
{
- VM_Warning(prog, "VM_entityfieldname: %s: field index out of bounds\n", prog->name);
+ VM_Warning(prog, "VM_entityfieldname: field index out of bounds!\n");
PRVM_G_INT(OFS_RETURN) = PRVM_SetTempString(prog, "", 0);
return;
}
if (i < 0 || i >= prog->numfielddefs)
{
- VM_Warning(prog, "VM_entityfieldtype: %s: field index out of bounds\n", prog->name);
+ VM_Warning(prog, "VM_entityfieldtype: field index out of bounds!\n");
PRVM_G_FLOAT(OFS_RETURN) = -1.0;
return;
}
if (i < 0 || i >= prog->numfielddefs)
{
- VM_Warning(prog, "VM_entityfielddata: %s: field index out of bounds\n", prog->name);
+ VM_Warning(prog, "VM_entityfielddata: field index out of bounds!\n");
PRVM_G_INT(OFS_RETURN) = PRVM_SetTempString(prog, "", 0);
return;
}
if(ent->free)
{
PRVM_G_INT(OFS_RETURN) = PRVM_SetTempString(prog, "", 0);
- VM_Warning(prog, "VM_entityfielddata: %s: entity %i is free !\n", prog->name, PRVM_NUM_FOR_EDICT(ent));
+ VM_Warning(prog, "VM_entityfielddata: entity %i is free!\n", PRVM_NUM_FOR_EDICT(ent));
return;
}
val = (prvm_eval_t *)(ent->fields.fp + d->ofs);
if (i < 0 || i >= prog->numfielddefs)
{
- VM_Warning(prog, "VM_entityfielddata: %s: field index out of bounds\n", prog->name);
+ VM_Warning(prog, "VM_entityfielddata: field index out of bounds!\n");
PRVM_G_FLOAT(OFS_RETURN) = 0.0f;
return;
}
ent = PRVM_G_EDICT(OFS_PARM1);
if(ent->free)
{
- VM_Warning(prog, "VM_entityfielddata: %s: entity %i is free !\n", prog->name, PRVM_NUM_FOR_EDICT(ent));
+ VM_Warning(prog, "VM_entityfielddata: entity %i is free!\n", PRVM_NUM_FOR_EDICT(ent));
PRVM_G_FLOAT(OFS_RETURN) = 0.0f;
return;
}
PRVM_G_FLOAT(OFS_RETURN) = CDAudio_GetPosition();
break;
default:
- VM_Warning(prog, "VM_gettime: %s: unsupported timer specified, returning realtime\n", prog->name);
+ VM_Warning(prog, "VM_gettime: unsupported timer specified, returning realtime\n");
PRVM_G_FLOAT(OFS_RETURN) = host.realtime;
break;
}
entnum = MAX_EDICTS + PRVM_NUM_FOR_EDICT(PRVM_G_EDICT(OFS_PARM0));
else
{
- VM_Warning(prog, "VM_getsoundtime: %s: not supported on this progs\n", prog->name);
+ VM_Warning(prog, "VM_getsoundtime: not supported on this progs\n");
PRVM_G_FLOAT(OFS_RETURN) = -1;
return;
}
entchannel = (int)PRVM_G_FLOAT(OFS_PARM1);
entchannel = CHAN_USER2ENGINE(entchannel);
if (!IS_CHAN(entchannel))
- VM_Warning(prog, "VM_getsoundtime: %s: bad channel %i\n", prog->name, entchannel);
+ VM_Warning(prog, "VM_getsoundtime: bad channel %i\n", entchannel);
PRVM_G_FLOAT(OFS_RETURN) = (prvm_vec_t)S_GetEntChannelPosition(entnum, entchannel);
}
if (FS_CheckNastyPath(filename, false))
{
PRVM_G_FLOAT(OFS_RETURN) = -4;
- VM_Warning(prog, "VM_loadfromfile: %s dangerous or non-portable filename \"%s\" not allowed. (contains : or \\ or begins with .. or /)\n", prog->name, filename);
+ VM_Warning(prog, "VM_loadfromfile: dangerous or non-portable filename \"%s\" not allowed. (contains : or \\ or begins with .. or /)\n", filename);
return;
}
if(handle >= PRVM_MAX_OPENSEARCHES)
{
PRVM_G_FLOAT(OFS_RETURN) = -2;
- VM_Warning(prog, "VM_search_begin: %s ran out of search handles (%i)\n", prog->name, PRVM_MAX_OPENSEARCHES);
+ VM_Warning(prog, "VM_search_begin: ran out of search handles (max %i)\n", PRVM_MAX_OPENSEARCHES);
return;
}
if(handle < 0 || handle >= PRVM_MAX_OPENSEARCHES)
{
- VM_Warning(prog, "VM_search_end: invalid handle %i used in %s\n", handle, prog->name);
+ VM_Warning(prog, "VM_search_end: invalid handle %i\n", handle);
return;
}
if(prog->opensearches[handle] == NULL)
{
- VM_Warning(prog, "VM_search_end: no such handle %i in %s\n", handle, prog->name);
+ VM_Warning(prog, "VM_search_end: no such handle %i\n", handle);
return;
}
if(handle < 0 || handle >= PRVM_MAX_OPENSEARCHES)
{
- VM_Warning(prog, "VM_search_getsize: invalid handle %i used in %s\n", handle, prog->name);
+ VM_Warning(prog, "VM_search_getsize: invalid handle %i\n", handle);
return;
}
if(prog->opensearches[handle] == NULL)
{
- VM_Warning(prog, "VM_search_getsize: no such handle %i in %s\n", handle, prog->name);
+ VM_Warning(prog, "VM_search_getsize: no such handle %i\n", handle);
return;
}
if(handle < 0 || handle >= PRVM_MAX_OPENSEARCHES)
{
- VM_Warning(prog, "VM_search_getfilename: invalid handle %i used in %s\n", handle, prog->name);
+ VM_Warning(prog, "VM_search_getfilename: invalid handle %i\n", handle);
return;
}
if(prog->opensearches[handle] == NULL)
{
- VM_Warning(prog, "VM_search_getfilename: no such handle %i in %s\n", handle, prog->name);
+ VM_Warning(prog, "VM_search_getfilename: no such handle %i\n", handle);
return;
}
if(filenum < 0 || filenum >= prog->opensearches[handle]->numfilenames)
{
- VM_Warning(prog, "VM_search_getfilename: invalid filenum %i in %s\n", filenum, prog->name);
+ VM_Warning(prog, "VM_search_getfilename: invalid filenum %i\n", filenum);
return;
}
BufStr_Del(prog, stringbuffer);
else
{
- VM_Warning(prog, "VM_buf_del: invalid buffer %i used in %s\n", (int)PRVM_G_FLOAT(OFS_PARM0), prog->name);
+ VM_Warning(prog, "VM_buf_del: invalid buffer %i\n", (int)PRVM_G_FLOAT(OFS_PARM0));
return;
}
}
if(!stringbuffer)
{
PRVM_G_FLOAT(OFS_RETURN) = -1;
- VM_Warning(prog, "VM_buf_getsize: invalid buffer %i used in %s\n", (int)PRVM_G_FLOAT(OFS_PARM0), prog->name);
+ VM_Warning(prog, "VM_buf_getsize: invalid buffer %i\n", (int)PRVM_G_FLOAT(OFS_PARM0));
return;
}
else
srcstringbuffer = (prvm_stringbuffer_t *)Mem_ExpandableArray_RecordAtIndex(&prog->stringbuffersarray, (int)PRVM_G_FLOAT(OFS_PARM0));
if(!srcstringbuffer)
{
- VM_Warning(prog, "VM_buf_copy: invalid source buffer %i used in %s\n", (int)PRVM_G_FLOAT(OFS_PARM0), prog->name);
+ VM_Warning(prog, "VM_buf_copy: invalid source buffer %i\n", (int)PRVM_G_FLOAT(OFS_PARM0));
return;
}
i = (int)PRVM_G_FLOAT(OFS_PARM1);
if(i == (int)PRVM_G_FLOAT(OFS_PARM0))
{
- VM_Warning(prog, "VM_buf_copy: source == destination (%i) in %s\n", i, prog->name);
+ VM_Warning(prog, "VM_buf_copy: source == destination (%i)\n", i);
return;
}
dststringbuffer = (prvm_stringbuffer_t *)Mem_ExpandableArray_RecordAtIndex(&prog->stringbuffersarray, (int)PRVM_G_FLOAT(OFS_PARM0));
if(!dststringbuffer)
{
- VM_Warning(prog, "VM_buf_copy: invalid destination buffer %i used in %s\n", (int)PRVM_G_FLOAT(OFS_PARM1), prog->name);
+ VM_Warning(prog, "VM_buf_copy: invalid destination buffer %i\n", (int)PRVM_G_FLOAT(OFS_PARM1));
return;
}
stringbuffer = (prvm_stringbuffer_t *)Mem_ExpandableArray_RecordAtIndex(&prog->stringbuffersarray, (int)PRVM_G_FLOAT(OFS_PARM0));
if(!stringbuffer)
{
- VM_Warning(prog, "VM_buf_sort: invalid buffer %i used in %s\n", (int)PRVM_G_FLOAT(OFS_PARM0), prog->name);
+ VM_Warning(prog, "VM_buf_sort: invalid buffer %i\n", (int)PRVM_G_FLOAT(OFS_PARM0));
return;
}
if(stringbuffer->num_strings <= 0)
{
- VM_Warning(prog, "VM_buf_sort: tried to sort empty buffer %i in %s\n", (int)PRVM_G_FLOAT(OFS_PARM0), prog->name);
+ VM_Warning(prog, "VM_buf_sort: tried to sort empty buffer %i\n", (int)PRVM_G_FLOAT(OFS_PARM0));
return;
}
stringbuffers_sortlength = (int)PRVM_G_FLOAT(OFS_PARM1);
PRVM_G_INT(OFS_RETURN) = OFS_NULL;
if(!stringbuffer)
{
- VM_Warning(prog, "VM_buf_implode: invalid buffer %i used in %s\n", (int)PRVM_G_FLOAT(OFS_PARM0), prog->name);
+ VM_Warning(prog, "VM_buf_implode: invalid buffer %i\n", (int)PRVM_G_FLOAT(OFS_PARM0));
return;
}
if(!stringbuffer->num_strings)
stringbuffer = (prvm_stringbuffer_t *)Mem_ExpandableArray_RecordAtIndex(&prog->stringbuffersarray, (int)PRVM_G_FLOAT(OFS_PARM0));
if(!stringbuffer)
{
- VM_Warning(prog, "VM_bufstr_get: invalid buffer %i used in %s\n", (int)PRVM_G_FLOAT(OFS_PARM0), prog->name);
+ VM_Warning(prog, "VM_bufstr_get: invalid buffer %i\n", (int)PRVM_G_FLOAT(OFS_PARM0));
return;
}
strindex = (int)PRVM_G_FLOAT(OFS_PARM1);
if (strindex < 0)
{
- // VM_Warning(prog, "VM_bufstr_get: invalid string index %i used in %s\n", strindex, prog->name);
+ // VM_Warning(prog, "VM_bufstr_get: invalid string index %i\n", strindex);
return;
}
if (strindex < stringbuffer->num_strings && stringbuffer->strings[strindex])
stringbuffer = (prvm_stringbuffer_t *)Mem_ExpandableArray_RecordAtIndex(&prog->stringbuffersarray, (int)PRVM_G_FLOAT(OFS_PARM0));
if(!stringbuffer)
{
- VM_Warning(prog, "VM_bufstr_set: invalid buffer %i used in %s\n", (int)PRVM_G_FLOAT(OFS_PARM0), prog->name);
+ VM_Warning(prog, "VM_bufstr_set: invalid buffer %i\n", (int)PRVM_G_FLOAT(OFS_PARM0));
return;
}
strindex = (int)PRVM_G_FLOAT(OFS_PARM1);
if(strindex < 0 || strindex >= 1000000) // huge number of strings
{
- VM_Warning(prog, "VM_bufstr_set: invalid string index %i used in %s\n", strindex, prog->name);
+ VM_Warning(prog, "VM_bufstr_set: invalid string index %i\n", strindex);
return;
}
PRVM_G_FLOAT(OFS_RETURN) = -1;
if(!stringbuffer)
{
- VM_Warning(prog, "VM_bufstr_add: invalid buffer %i used in %s\n", (int)PRVM_G_FLOAT(OFS_PARM0), prog->name);
+ VM_Warning(prog, "VM_bufstr_add: invalid buffer %i\n", (int)PRVM_G_FLOAT(OFS_PARM0));
return;
}
if(!PRVM_G_INT(OFS_PARM1)) // NULL string
{
- VM_Warning(prog, "VM_bufstr_add: can not add an empty string to buffer %i in %s\n", (int)PRVM_G_FLOAT(OFS_PARM0), prog->name);
+ VM_Warning(prog, "VM_bufstr_add: can not add an empty string to buffer %i\n", (int)PRVM_G_FLOAT(OFS_PARM0));
return;
}
string = PRVM_G_STRING(OFS_PARM1);
stringbuffer = (prvm_stringbuffer_t *)Mem_ExpandableArray_RecordAtIndex(&prog->stringbuffersarray, (int)PRVM_G_FLOAT(OFS_PARM0));
if(!stringbuffer)
{
- VM_Warning(prog, "VM_bufstr_free: invalid buffer %i used in %s\n", (int)PRVM_G_FLOAT(OFS_PARM0), prog->name);
+ VM_Warning(prog, "VM_bufstr_free: invalid buffer %i\n", (int)PRVM_G_FLOAT(OFS_PARM0));
return;
}
i = (int)PRVM_G_FLOAT(OFS_PARM1);
if(i < 0)
{
- VM_Warning(prog, "VM_bufstr_free: invalid string index %i used in %s\n", i, prog->name);
+ VM_Warning(prog, "VM_bufstr_free: invalid string index %i\n", i);
return;
}
if (file == NULL)
{
if (developer_extra.integer)
- VM_Warning(prog, "VM_buf_loadfile: failed to open file %s in %s\n", filename, prog->name);
+ VM_Warning(prog, "VM_buf_loadfile: failed to open file %s\n", filename);
PRVM_G_FLOAT(OFS_RETURN) = 0;
return;
}
stringbuffer = (prvm_stringbuffer_t *)Mem_ExpandableArray_RecordAtIndex(&prog->stringbuffersarray, (int)PRVM_G_FLOAT(OFS_PARM1));
if(!stringbuffer)
{
- VM_Warning(prog, "VM_buf_loadfile: invalid buffer %i used in %s\n", (int)PRVM_G_FLOAT(OFS_PARM1), prog->name);
+ VM_Warning(prog, "VM_buf_loadfile: invalid buffer %i\n", (int)PRVM_G_FLOAT(OFS_PARM1));
PRVM_G_FLOAT(OFS_RETURN) = 0;
return;
}
filenum = (int)PRVM_G_FLOAT(OFS_PARM0);
if (filenum < 0 || filenum >= PRVM_MAX_OPENFILES)
{
- VM_Warning(prog, "VM_buf_writefile: invalid file handle %i used in %s\n", filenum, prog->name);
+ VM_Warning(prog, "VM_buf_writefile: invalid file handle %i\n", filenum);
return;
}
if (prog->openfiles[filenum] == NULL)
{
- VM_Warning(prog, "VM_buf_writefile: no such file handle %i (or file has been closed) in %s\n", filenum, prog->name);
+ VM_Warning(prog, "VM_buf_writefile: no such file handle %i (or file has been closed)\n", filenum);
return;
}
stringbuffer = (prvm_stringbuffer_t *)Mem_ExpandableArray_RecordAtIndex(&prog->stringbuffersarray, (int)PRVM_G_FLOAT(OFS_PARM1));
if(!stringbuffer)
{
- VM_Warning(prog, "VM_buf_writefile: invalid buffer %i used in %s\n", (int)PRVM_G_FLOAT(OFS_PARM1), prog->name);
+ VM_Warning(prog, "VM_buf_writefile: invalid buffer %i\n", (int)PRVM_G_FLOAT(OFS_PARM1));
PRVM_G_FLOAT(OFS_RETURN) = 0;
return;
}
}
if (strindex < 0 || strindex >= stringbuffer->num_strings)
{
- VM_Warning(prog, "VM_buf_writefile: wrong start string index %i used in %s\n", strindex, prog->name);
+ VM_Warning(prog, "VM_buf_writefile: wrong start string index %i\n", strindex);
PRVM_G_FLOAT(OFS_RETURN) = 0;
return;
}
if (strnum < 0)
{
- VM_Warning(prog, "VM_buf_writefile: wrong strings count %i used in %s\n", strnum, prog->name);
+ VM_Warning(prog, "VM_buf_writefile: wrong strings count %i\n", strnum);
PRVM_G_FLOAT(OFS_RETURN) = 0;
return;
}
stringbuffer = (prvm_stringbuffer_t *)Mem_ExpandableArray_RecordAtIndex(&prog->stringbuffersarray, (int)PRVM_G_FLOAT(OFS_PARM0));
if(!stringbuffer)
{
- VM_Warning(prog, "VM_bufstr_find: invalid buffer %i used in %s\n", (int)PRVM_G_FLOAT(OFS_PARM0), prog->name);
+ VM_Warning(prog, "VM_bufstr_find: invalid buffer %i\n", (int)PRVM_G_FLOAT(OFS_PARM0));
return;
}
matchrule = (int)PRVM_G_FLOAT(OFS_PARM2);
if (matchrule < 0 || matchrule > 5)
{
- VM_Warning(prog, "VM_bufstr_find: invalid match rule %i in %s\n", matchrule, prog->name);
+ VM_Warning(prog, "VM_bufstr_find: invalid match rule %i\n", matchrule);
return;
}
if (matchrule)
matchrule = (int)PRVM_G_FLOAT(OFS_PARM2);
if (matchrule < 0 || matchrule > 5)
{
- VM_Warning(prog, "VM_matchpattern: invalid match rule %i in %s\n", matchrule, prog->name);
+ VM_Warning(prog, "VM_matchpattern: invalid match rule %i\n", matchrule);
return;
}
if (matchrule)
stringbuffer = (prvm_stringbuffer_t *)Mem_ExpandableArray_RecordAtIndex(&prog->stringbuffersarray, (int)PRVM_G_FLOAT(OFS_PARM0));
if(!stringbuffer)
{
- VM_Warning(prog, "VM_bufstr_free: invalid buffer %i used in %s\n", (int)PRVM_G_FLOAT(OFS_PARM0), prog->name);
+ VM_Warning(prog, "VM_bufstr_free: invalid buffer %i\n", (int)PRVM_G_FLOAT(OFS_PARM0));
return;
}
stringbuffer = (prvm_stringbuffer_t *)Mem_ExpandableArray_RecordAtIndex(&prog->stringbuffersarray, poststringbuffer);
if(!stringbuffer)
{
- VM_Warning(prog, "uri_get: invalid buffer %i used in %s\n", (int)PRVM_G_FLOAT(OFS_PARM0), prog->name);
+ VM_Warning(prog, "uri_get: invalid buffer %i\n", (int)PRVM_G_FLOAT(OFS_PARM0));
return;
}
ltotal = 0;
width = strtol(s, &err, 10);
if(!err)
{
- VM_Warning(prog, "VM_sprintf: invalid directive in %s: %s\n", prog->name, s0);
+ VM_Warning(prog, "VM_sprintf: invalid directive: %s\n", s0);
goto finished;
}
if(*err == '$')
width = strtol(s, &err, 10);
if(!err || *err != '$')
{
- VM_Warning(prog, "VM_sprintf: invalid directive in %s: %s\n", prog->name, s0);
+ VM_Warning(prog, "VM_sprintf: invalid directive: %s\n", s0);
goto finished;
}
s = err + 1;
width = strtol(s, &err, 10);
if(!err)
{
- VM_Warning(prog, "VM_sprintf: invalid directive in %s: %s\n", prog->name, s0);
+ VM_Warning(prog, "VM_sprintf: invalid directive: %s\n", s0);
goto finished;
}
s = err;
precision = strtol(s, &err, 10);
if(!err || *err != '$')
{
- VM_Warning(prog, "VM_sprintf: invalid directive in %s: %s\n", prog->name, s0);
+ VM_Warning(prog, "VM_sprintf: invalid directive: %s\n", s0);
goto finished;
}
s = err + 1;
precision = strtol(s, &err, 10);
if(!err)
{
- VM_Warning(prog, "VM_sprintf: invalid directive in %s: %s\n", prog->name, s0);
+ VM_Warning(prog, "VM_sprintf: invalid directive: %s\n", s0);
goto finished;
}
s = err;
}
else
{
- VM_Warning(prog, "VM_sprintf: invalid directive in %s: %s\n", prog->name, s0);
+ VM_Warning(prog, "VM_sprintf: invalid directive: %s\n", s0);
goto finished;
}
}
}
break;
default:
- VM_Warning(prog, "VM_sprintf: invalid directive in %s: %s\n", prog->name, s0);
+ VM_Warning(prog, "VM_sprintf: invalid directive: %s\n", s0);
goto finished;
}
}