Revision 77e595e7 qerror.c

b/qerror.c
283 283
}
284 284

  
285 285
/**
286
 * qerror_print(): Print QError data
286
 * qerror_human(): Format QError data into human-readable string.
287 287
 *
288
 * This function will print the member 'desc' of the specified QError object,
289
 * it uses qemu_error() for this, so that the output is routed to the right
290
 * place (ie. stderr or Monitor's device).
288
 * Formats according to member 'desc' of the specified QError object.
291 289
 */
292
void qerror_print(const QError *qerror)
290
QString *qerror_human(const QError *qerror)
293 291
{
294 292
    const char *p;
295 293
    QString *qstring;
......
309 307
        }
310 308
    }
311 309

  
310
    return qstring;
311
}
312

  
313
/**
314
 * qerror_print(): Print QError data
315
 *
316
 * This function will print the member 'desc' of the specified QError object,
317
 * it uses qemu_error() for this, so that the output is routed to the right
318
 * place (ie. stderr or Monitor's device).
319
 */
320
void qerror_print(const QError *qerror)
321
{
322
    QString *qstring = qerror_human(qerror);
312 323
    qemu_error("%s\n", qstring_get_str(qstring));
313 324
    QDECREF(qstring);
314 325
}

Also available in: Unified diff