Changes in / [a4f8c3f:4708060d] in mainline
- Location:
- uspace
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/sysinst/sysinst.c
ra4f8c3f r4708060d 158 158 static void sysinst_futil_create_dir(void *, const char *); 159 159 static errno_t sysinst_eject_dev(sysinst_t *, service_id_t); 160 static errno_t sysinst_eject_phys_by_mp(sysinst_t *, const char *); 160 161 161 162 static futil_cb_t sysinst_futil_cb = { … … 272 273 case 0: 273 274 /* OK */ 275 sysinst_action(sysinst, "Ejecting installation media."); 276 (void)sysinst_eject_phys_by_mp(sysinst, CD_MOUNT_POINT); 274 277 (void)sysinst_restart(sysinst); 275 278 break; … … 592 595 rc = futil_rcopy_contents(sysinst->futil, CFG_FILES_SRC, 593 596 CFG_FILES_DEST); 594 if (rc != EOK) 595 return rc; 597 if (rc != EOK) { 598 sysinst_error(sysinst, "Error copying initial configuration " 599 "files."); 600 return rc; 601 } 596 602 597 603 return EOK; … … 613 619 "sysinst_copy_boot_files(): copy bootloader files"); 614 620 rc = futil_rcopy_contents(sysinst->futil, BOOT_FILES_SRC, MOUNT_POINT); 615 if (rc != EOK) 616 return rc; 621 if (rc != EOK) { 622 sysinst_error(sysinst, "Error copying bootloader " 623 "files."); 624 return rc; 625 } 617 626 618 627 sysinst_debug(sysinst, "sysinst_copy_boot_files(): OK"); … … 891 900 errno_t rc; 892 901 902 log_msg(LOG_DEFAULT, LVL_NOTE, 903 "sysinst_eject_phys_by_mp(%s)", path); 904 893 905 rc = vol_create(&vol); 894 906 if (rc != EOK) { … … 934 946 shutdown_failed = false; 935 947 948 sysinst_action(sysinst, "Restarting the system."); 949 936 950 rc = system_open(SYSTEM_DEFAULT, &sysinst_system_cb, NULL, &system); 937 951 if (rc != EOK) { … … 983 997 { 984 998 errno_t rc; 999 bool clean_dev = false; 985 1000 986 1001 sysinst_action(sysinst, "Creating device label and file system."); … … 988 1003 rc = sysinst_label_dev(sysinst, dev); 989 1004 if (rc != EOK) 990 return rc; 1005 goto error; 1006 1007 clean_dev = true; 991 1008 992 1009 sysinst_action(sysinst, "Creating system directory structure."); 993 1010 rc = sysinst_setup_sysvol(sysinst); 994 1011 if (rc != EOK) 995 return rc;1012 goto error; 996 1013 997 1014 sysinst_action(sysinst, "Copying boot files."); 998 1015 rc = sysinst_copy_boot_files(sysinst); 999 1016 if (rc != EOK) 1000 return rc;1017 goto error; 1001 1018 1002 1019 sysinst_action(sysinst, "Configuring the system."); 1003 1020 rc = sysinst_customize_initrd(sysinst); 1004 1021 if (rc != EOK) 1005 return rc;1022 goto error; 1006 1023 1007 1024 sysinst_action(sysinst, "Finishing system volume."); 1008 1025 rc = sysinst_finish_dev(sysinst); 1009 1026 if (rc != EOK) 1010 return rc; 1027 goto error; 1028 1029 clean_dev = false; 1011 1030 1012 1031 sysinst_action(sysinst, "Installing boot blocks."); … … 1015 1034 return rc; 1016 1035 1017 sysinst_action(sysinst, "Ejecting installation media."); 1018 rc = sysinst_eject_phys_by_mp(sysinst, CD_MOUNT_POINT); 1019 if (rc != EOK) 1020 return rc; 1021 1022 return EOK; 1036 return EOK; 1037 error: 1038 if (clean_dev) 1039 (void)sysinst_finish_dev(sysinst); 1040 return rc; 1023 1041 } 1024 1042 … … 1055 1073 1056 1074 sysinst_progress_destroy(sysinst->progress); 1075 sysinst->progress = NULL; 1076 1057 1077 rc = sysinst_restart_dlg_create(sysinst); 1058 1078 if (rc != EOK) … … 1233 1253 static void sysinst_action(sysinst_t *sysinst, const char *action) 1234 1254 { 1255 log_msg(LOG_DEFAULT, LVL_NOTE, "%s", action); 1256 1235 1257 if (sysinst->progress == NULL) 1236 1258 return; … … 1238 1260 ui_label_set_text(sysinst->progress->action, action); 1239 1261 ui_label_paint(sysinst->progress->action); 1240 log_msg(LOG_DEFAULT, LVL_NOTE, "%s", action);1241 1262 } 1242 1263 -
uspace/drv/hid/usbhid/mouse/mousedev.c
ra4f8c3f r4708060d 1 1 /* 2 * Copyright (c) 2025 Jiri Svoboda 2 3 * Copyright (c) 2011 Lubos Slovak, Vojtech Horky 3 4 * Copyright (c) 2018 Ondrej Hlavaty … … 166 167 assert(mouse_dev != NULL); 167 168 168 if (mouse_dev->mouse_sess == NULL) { 169 usb_log_warning(NAME " No console session."); 170 return; 171 } 169 if (mouse_dev->mouse_sess == NULL) 170 return; 172 171 173 172 const usb_hid_report_field_t *move_x = get_mouse_axis_move_field(
Note:
See TracChangeset
for help on using the changeset viewer.