Changeset 264
- Timestamp:
- 04/14/11 21:04:23 (13 months ago)
- Location:
- ap51-flash-ng
- Files:
-
- 2 modified
-
proto.c (modified) (4 diffs)
-
router_types.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ap51-flash-ng/proto.c
r263 r264 255 255 node->image_state.flash_size = node->router_type->image->ci_info.kernel_fsize; 256 256 node->image_state.offset = node->router_type->image->ci_info.kernel_offset; 257 #if defined(DEBUG) 257 258 258 fprintf(stderr, "[%02x:%02x:%02x:%02x:%02x:%02x]: %s: tftp client asks for '%s', serving kernel portion of: %s (%i blocks) ...\n", 259 259 node->his_mac_addr[0], node->his_mac_addr[1], node->his_mac_addr[2], … … 261 261 node->router_type->desc, file_name, node->router_type->image->path, 262 262 ((node->image_state.flash_size + TFTP_PAYLOAD_SIZE - 1) / TFTP_PAYLOAD_SIZE)); 263 #endif264 263 } else { 265 264 node->image_state.file_size = node->router_type->image->ci_info.rootfs_size; 266 265 node->image_state.flash_size = node->router_type->image->ci_info.rootfs_fsize; 267 266 node->image_state.offset = node->router_type->image->ci_info.rootfs_offset; 268 #if defined(DEBUG) 267 269 268 fprintf(stderr, "[%02x:%02x:%02x:%02x:%02x:%02x]: %s: tftp client asks for '%s', serving rootfs portion of: %s (%i blocks) ...\n", 270 269 node->his_mac_addr[0], node->his_mac_addr[1], node->his_mac_addr[2], … … 272 271 node->router_type->desc, file_name, node->router_type->image->path, 273 272 ((node->image_state.flash_size + TFTP_PAYLOAD_SIZE - 1) / TFTP_PAYLOAD_SIZE)); 274 #endif275 273 } 276 274 break; 277 275 case FLASH_MODE_TFTP_CLIENT: 278 #if defined(DEBUG)279 276 fprintf(stderr, "[%02x:%02x:%02x:%02x:%02x:%02x]: %s: tftp client asks for '%s', serving: %s (%i blocks) ...\n", 280 277 node->his_mac_addr[0], node->his_mac_addr[1], node->his_mac_addr[2], … … 282 279 node->router_type->desc, file_name, node->router_type->image->path, 283 280 ((node->router_type->image->flash_size + TFTP_PAYLOAD_SIZE - 1) / TFTP_PAYLOAD_SIZE)); 284 #endif285 281 break; 286 282 } -
ap51-flash-ng/router_types.c
r258 r264 84 84 /* we detected a router that we have no image for */ 85 85 if ((*router_type)->image->file_size < 1) { 86 #if defined(DEBUG)87 86 fprintf(stderr, "[%02x:%02x:%02x:%02x:%02x:%02x]: is of type '%s' that we have no image for\n", 88 87 node->his_mac_addr[0], node->his_mac_addr[1], node->his_mac_addr[2], 89 88 node->his_mac_addr[3], node->his_mac_addr[4], node->his_mac_addr[5], 90 89 (*router_type)->desc); 91 #endif 90 92 91 node->status = NODE_STATUS_NO_FLASH; 93 92 ret = 0; … … 99 98 node->router_priv = priv; 100 99 101 #if defined(DEBUG)102 100 fprintf(stderr, "[%02x:%02x:%02x:%02x:%02x:%02x]: type '%s' detected\n", 103 101 node->his_mac_addr[0], node->his_mac_addr[1], node->his_mac_addr[2], 104 102 node->his_mac_addr[3], node->his_mac_addr[4], node->his_mac_addr[5], 105 103 node->router_type->desc); 106 #endif107 104 108 105 if (!(*router_type)->detect_post)
