Print this page
11819 svcs -L should check for alt_logfile

@@ -2627,13 +2627,12 @@
         scf_snapshot_destroy(snap);
 
         return (0);
 }
 
-/* ARGSUSED */
 static int
-print_log(void *unused, scf_walkinfo_t *wip)
+print_log(void *unused __unused, scf_walkinfo_t *wip)
 {
         scf_propertygroup_t *rpg;
         char buf[MAXPATHLEN];
 
         if ((rpg = scf_pg_create(h)) == NULL)

@@ -2647,10 +2646,13 @@
         }
 
         if (pg_get_single_val(rpg, SCF_PROPERTY_LOGFILE,
             SCF_TYPE_ASTRING, buf, sizeof (buf), 0) == 0) {
                 (void) printf("%s\n", buf);
+        } else if (pg_get_single_val(rpg, SCF_PROPERTY_ALT_LOGFILE,
+            SCF_TYPE_ASTRING, buf, sizeof (buf), 0) == 0) {
+                (void) printf("%s\n", buf);
         }
 
 out:
         scf_pg_destroy(rpg);