LOG_ERROR_MESSAGE( "add_flag %d\n" "sc_size %d", euc->shopping_cart_data.add_flag, euc->shopping_cart_data.sc_size); for (i=0;i<euc->shopping_cart_data.sc_size; i++) { LOG_ERROR_MESSAGE("i_id %lld\n" "i_qty %d", euc->shopping_cart_data.scl_data[i].scl_i_id, euc->shopping_cart_data.scl_data[i].scl_qty); }
int dump_interaction_data(struct eu_context_t *euc){	LOG_ERROR_MESSAGE(		"dumping %s interaction data\n"		"c_id %lld\n"		"sc_id %lld",		interaction_short_name[euc->interaction],		euc->c_id,		euc->sc_id);	switch (euc->interaction)	{		case ADMIN_CONFIRM:			LOG_ERROR_MESSAGE(				"i_id %lld\n"				"i_image %lld\n"				"i_thumbnail %lld\n"				"i_cost %f", euc->admin_confirm_data.i_id,				euc->admin_confirm_data.i_image,				euc->admin_confirm_data.i_thumbnail,				euc->admin_confirm_data.i_cost);			break;		case ADMIN_REQUEST:			LOG_ERROR_MESSAGE("i_id %lld", euc->admin_request_data.i_id);			break;		case BEST_SELLERS:			LOG_ERROR_MESSAGE(				"i_subject %s", euc->best_sellers_data.i_subject);			break;		case BUY_CONFIRM:			if (euc->buy_confirm_data.c_id < 1 ||				euc->buy_confirm_data.c_id > customers)			{				LOG_ERROR_MESSAGE("review BR data\n---BR---\n"					"sc_id %lld", euc->buy_request_data.sc_id);				if (euc->buy_request_data.returning_flag == TRUE)				{					LOG_ERROR_MESSAGE(						"c_uname %s\n"						"c_passwd %s\n",						euc->buy_request_data.c_uname,						euc->buy_request_data.c_passwd);				}				else				{					LOG_ERROR_MESSAGE(						"c_discount %f\n"						"c_fname %s\n"						"c_lname %s\n"						"c_phone %s\n"						"c_email %s\n"						"c_birthdate %s\n"						"c_data %s\n"						"addr_street1 %s\n"						"addr_street2 %s\n"						"addr_city %s\n"						"addr_state %s\n"						"addr_zip %s\n"						"co_name %s\n---BR---",						euc->buy_request_data.c_discount,						euc->buy_request_data.c_fname,						euc->buy_request_data.c_lname,						euc->buy_request_data.c_phone,						euc->buy_request_data.c_email,						euc->buy_request_data.c_birthdate,						euc->buy_request_data.c_data,						euc->buy_request_data.address.addr_street1,						euc->buy_request_data.address.addr_street2,						euc->buy_request_data.address.addr_city,						euc->buy_request_data.address.addr_state,						euc->buy_request_data.address.addr_zip,						euc->buy_request_data.address.co_name);				}			}			LOG_ERROR_MESSAGE(				"sc_id %lld\n"				"c_id %lld\n"				"cx_type %s\n"				"cx_num %s\n"				"cx_name %s\n"				"cx_expiry %s\n"				"o_ship_type %s",				euc->buy_confirm_data.sc_id,				euc->buy_confirm_data.c_id,				euc->buy_confirm_data.cx_type,				euc->buy_confirm_data.cx_num,				euc->buy_confirm_data.cx_name,				euc->buy_confirm_data.cx_expiry,				euc->buy_confirm_data.o_ship_type);			if (euc->buy_confirm_data.update_address == TRUE)			{				LOG_ERROR_MESSAGE(					"addr_street1 %s\n"					"addr_street2 %s\n"					"addr_city %s\n"					"addr_state %s\n"					"addr_zip %s\n"					"co_name %s\n",					euc->buy_confirm_data.shipping.addr_street1,					euc->buy_confirm_data.shipping.addr_street2,					euc->buy_confirm_data.shipping.addr_city,					euc->buy_confirm_data.shipping.addr_state,					euc->buy_confirm_data.shipping.addr_zip,					euc->buy_confirm_data.shipping.co_name);			}			break;		case BUY_REQUEST:			LOG_ERROR_MESSAGE("sc_id %lld", euc->buy_request_data.sc_id);			if (euc->buy_request_data.c_id != UNKNOWN_CUSTOMER)			{				LOG_ERROR_MESSAGE(					"c_id %lld\n"					"c_uname %s\n"					"c_passwd %s\n",					euc->buy_request_data.c_id,					euc->buy_request_data.c_uname,					euc->buy_request_data.c_passwd);			}			else			{				LOG_ERROR_MESSAGE(					"c_discount %f\n"					"c_fname %s\n"					"c_lname %s\n"					"c_phone %s\n"					"c_email %s\n"					"c_birthdate %s\n"					"c_data %s\n"					"addr_street1 %s\n"					"addr_street2 %s\n"					"addr_city %s\n"					"addr_state %s\n"					"addr_zip %s\n"					"co_name %s\n",					euc->buy_request_data.c_discount,					euc->buy_request_data.c_fname,					euc->buy_request_data.c_lname,					euc->buy_request_data.c_phone,					euc->buy_request_data.c_email,					euc->buy_request_data.c_birthdate,					euc->buy_request_data.c_data,					euc->buy_request_data.address.addr_street1,					euc->buy_request_data.address.addr_street2,					euc->buy_request_data.address.addr_city,					euc->buy_request_data.address.addr_state,					euc->buy_request_data.address.addr_zip,					euc->buy_request_data.address.co_name);			}			break;		case HOME:			LOG_ERROR_MESSAGE("c_id %lld", euc->home_data.c_id);			break;		case NEW_PRODUCTS:			LOG_ERROR_MESSAGE(				"i_subject %s", euc->best_sellers_data.i_subject);			break;		case ORDER_DISPLAY:			LOG_ERROR_MESSAGE(				"c_uname %s\n"				"c_passwd %s\n",				euc->order_display_data.c_uname,				euc->order_display_data.c_passwd);			break;		case ORDER_INQUIRY:			LOG_ERROR_MESSAGE("c_id %lld", euc->order_inquiry_data.c_id);			break;		case PRODUCT_DETAIL:			LOG_ERROR_MESSAGE("i_id %lld", euc->product_detail_data.i_id);			break;		case SEARCH_REQUEST:			break;		case SEARCH_RESULTS:			LOG_ERROR_MESSAGE(				"search_type %d\n"				"search_string %s",				euc->search_results_data.search_type,				euc->search_results_data.search_string);			break;		case SHOPPING_CART:			break;		default:			LOG_ERROR_MESSAGE("unknown interaction %d", euc->interaction);			break;	}	return W_OK;}