return -1;
memcpy(vres->priv, &disk_sched->ioprio, sizeof(int));
- printf("Created BFQ VRES (ioprio=%d budget=%ld ms, period=%ld ms)\n",
- disk_sched->ioprio,
- fosa_rel_time_to_msec(basic->budget),
- fosa_rel_time_to_msec(basic->period));
+ ul_logmsg("Created BFQ VRES (ioprio=%d budget=%ld ms, period=%ld ms)\n",
+ disk_sched->ioprio,
+ fosa_rel_time_to_msec(basic->budget),
+ fosa_rel_time_to_msec(basic->period));
return 0;
}
* is automatically released when the thread is unbound
* from the vres itself.
*/
- printf("Canceled DISK VRES (ioprio=%d)\n", *((int*)vres->priv));
+ ul_logmsg("Canceled DISK VRES (ioprio=%d)\n", *((int*)vres->priv));
free(vres->priv);
return 0;
}
disk_sched = fres_contract_get_disk_sched(vres->new);
- printf("Changed BFQ VRES from ioprio=%d to ioprio=%d\n",
- *((int*)vres->priv), (int) disk_sched->ioprio);
+ ul_logmsg("Changed BFQ VRES from ioprio=%d to ioprio=%d\n",
+ *((int*)vres->priv), (int) disk_sched->ioprio);
memcpy(vres->priv, &disk_sched->ioprio, sizeof(int));
return 0;