chiark / gitweb /
network: link - simplify code a bit and remove some debug logging
[elogind.git] / src / hostname / hostnamed.c
index e57891bf0d932b365731a623655c7c1f9f59c389..6aa08cacb0385c5aca1af01638c55b30f69850c5 100644 (file)
@@ -123,7 +123,7 @@ static const char* fallback_chassis(void) {
         int r;
         char *type;
         unsigned t;
-        Virtualization v;
+        int v;
 
         v = detect_virtualization(NULL);
 
@@ -635,7 +635,7 @@ int main(int argc, char *argv[]) {
 
         r = context_read_data(&context);
         if (r < 0) {
-                log_error("Failed to read timezone data: %s", strerror(-r));
+                log_error("Failed to read hostname and machine information: %s", strerror(-r));
                 goto finish;
         }