Changeset 3f05ef7 in mainline
- Timestamp:
- 2019-08-06T19:23:02Z (5 years ago)
- Children:
- dba056b
- Parents:
- 63a3276
- git-author:
- Michal Koutný <xm.koutny+hos@…> (2015-06-20 00:57:34)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2019-08-06 19:23:02)
- Location:
- uspace/srv/sysman
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/sysman/Makefile
r63a3276 r3f05ef7 43 43 dep.c \ 44 44 job.c \ 45 log.c \ 45 46 sysman.c \ 46 47 unit.c \ -
uspace/srv/sysman/log.h
r63a3276 r3f05ef7 37 37 * that would use logger as soon as it's ready. 38 38 */ 39 #define sysman_log(level, fmt, ...) printf("sysman: " fmt "\n", ##__VA_ARGS__)39 //#define sysman_log(level, fmt, ...) if(level > LVL_DEBUG2) printf("sysman: " fmt "\n", ##__VA_ARGS__) 40 40 41 extern void sysman_log(log_level_t, const char *, ...) PRINTF_ATTRIBUTE(2, 3); 42 43 extern void sysman_log_tofile(void); 41 44 #endif -
uspace/srv/sysman/units/unit_mnt.c
r63a3276 r3f05ef7 234 234 assert(unit->state == STATE_STOPPED || unit->state == STATE_STARTING); 235 235 236 if (str_cmp(unit_name(unit), "rootfs.mnt") == 0) { 237 sysman_log_tofile(); 238 } 236 239 unit->state = STATE_STARTED; 237 240 unit_notify_state(unit);
Note:
See TracChangeset
for help on using the changeset viewer.