@@ -52,7 +52,7 @@ int daemon_start(pid_t *pid)
52
52
char * argv [] = {application_executable_path , NULL };
53
53
54
54
res = posix_spawn (pid , application_executable_path , NULL , NULL , argv , env_vars );
55
- DBG ("posix_spawn: pid=%d, application_path=%s, env={%s,%s}" ,
55
+ DBG ("pid=%d, application_path=%s, env={%s,%s}" ,
56
56
* pid , application_executable_path , env_library_path , env_armcap );
57
57
58
58
free (env_library_path );
@@ -115,24 +115,24 @@ int hyperiond_start(service_t* service)
115
115
{
116
116
int res = 0 ;
117
117
if (!is_elevated ()) {
118
- ERR ("hyperiond_start: Not elevated" );
118
+ ERR ("Not elevated" );
119
119
return 1 ;
120
120
} else if (is_running (service -> daemon_pid )) {
121
- ERR ("hyperiond_start: Daemon already running" );
121
+ ERR ("Daemon already running" );
122
122
return 2 ;
123
123
}
124
124
125
125
res = daemon_start (& service -> daemon_pid );
126
- DBG ("hyperiond_start: daemon_start -> PID=%d" , service -> daemon_pid );
126
+ DBG ("daemon_start -> PID=%d" , service -> daemon_pid );
127
127
128
128
if (res != 0 ) {
129
- ERR ("hyperiond_start: Failed daemon_start with res=%d" , res );
129
+ ERR ("Failed daemon_start with res=%d" , res );
130
130
return 3 ;
131
131
}
132
132
133
133
res = pthread_create (& service -> execution_thread , NULL , execution_task , service );
134
134
if (res != 0 ) {
135
- ERR ("hyperiond_start: pthread_create failed, res=%d" , res );
135
+ ERR ("pthread_create failed, res=%d" , res );
136
136
return 4 ;
137
137
}
138
138
@@ -144,22 +144,22 @@ int hyperiond_stop(service_t* service)
144
144
int res = 0 ;
145
145
146
146
if (!is_elevated ()) {
147
- ERR ("hyperiond_stop: Not elevated" );
147
+ ERR ("Not elevated" );
148
148
return 1 ;
149
149
} else if (!is_running (service -> daemon_pid )) {
150
- ERR ("hyperiond_stop: Daemon not running" );
150
+ ERR ("Daemon not running" );
151
151
return 2 ;
152
152
}
153
153
154
154
res = kill (service -> daemon_pid , SIGTERM );
155
155
if (res != 0 ) {
156
- ERR ("hyperiond_stop: kill failed, res=%d" , res );
156
+ ERR ("kill failed, res=%d" , res );
157
157
return 3 ;
158
158
}
159
159
160
160
res = pthread_join (service -> execution_thread , NULL );
161
161
if (res != 0 ) {
162
- ERR ("hyperiond_stop: pthread_join failed, res=%d" , res );
162
+ ERR ("pthread_join failed, res=%d" , res );
163
163
return 4 ;
164
164
}
165
165
service -> execution_thread = (pthread_t ) NULL ;
@@ -174,20 +174,20 @@ int hyperiond_version(service_t* service)
174
174
if (service -> hyperiond_version == NULL ) {
175
175
service -> hyperiond_version = (char * )calloc (FILENAME_MAX , 1 );
176
176
if (service -> hyperiond_version == NULL ) {
177
- ERR ("hyperiond_version: Failed version buf allocation" );
177
+ ERR ("Failed version buf allocation" );
178
178
return 1 ;
179
179
}
180
180
181
181
char * command = hyperiond_version_cmdline ();
182
182
// Spawn process with read-only pipe
183
183
FILE * fp = popen (command , "r" );
184
184
if (fp == NULL ) {
185
- ERR ("hyperiond_version: popen failed" );
185
+ ERR ("popen failed" );
186
186
res = 2 ;
187
187
} else {
188
188
int bytes_read = fread (service -> hyperiond_version , 1 , FILENAME_MAX , fp );
189
189
if (bytes_read == 0 ) {
190
- ERR ("hyperiond_version: Reading process' stdout failed" );
190
+ ERR ("Reading process' stdout failed" );
191
191
res = 3 ;
192
192
}
193
193
@@ -312,7 +312,7 @@ bool service_method_terminate(LSHandle* sh, LSMessage* msg, void* data __attribu
312
312
LSError lserror ;
313
313
LSErrorInit (& lserror );
314
314
315
- WARN ("service_method_terminate: Terminating" );
315
+ WARN ("Terminating" );
316
316
317
317
jvalue_ref jobj = jobject_create ();
318
318
jobject_set (jobj , j_cstr_to_buffer ("returnValue" ), jboolean_create (true));
0 commit comments