mirror of
https://github.com/systemd/systemd.git
synced 2024-11-14 15:21:37 +03:00
Merge pull request #460 from xnox/bootchart-warning
bootchart: do not report warning when disk is missing model.
This commit is contained in:
commit
e15b038865
@ -172,7 +172,7 @@ static int svg_title(FILE *of, const char *build, int pscount, double log_start,
|
||||
|
||||
r = read_one_line_file(filename, &model);
|
||||
if (r < 0)
|
||||
log_warning("Error reading disk model for %s: %m\n", rootbdev);
|
||||
log_info("Error reading disk model for %s: %m\n", rootbdev);
|
||||
}
|
||||
|
||||
/* various utsname parameters */
|
||||
@ -208,6 +208,7 @@ static int svg_title(FILE *of, const char *build, int pscount, double log_start,
|
||||
fprintf(of, "<text class=\"t2\" x=\"20\" y=\"50\">System: %s %s %s %s</text>\n",
|
||||
uts.sysname, uts.release, uts.version, uts.machine);
|
||||
fprintf(of, "<text class=\"t2\" x=\"20\" y=\"65\">CPU: %s</text>\n", cpu);
|
||||
if (model)
|
||||
fprintf(of, "<text class=\"t2\" x=\"20\" y=\"80\">Disk: %s</text>\n", model);
|
||||
fprintf(of, "<text class=\"t2\" x=\"20\" y=\"95\">Boot options: %s</text>\n", cmdline);
|
||||
fprintf(of, "<text class=\"t2\" x=\"20\" y=\"110\">Build: %s</text>\n", build);
|
||||
|
Loading…
Reference in New Issue
Block a user