Revision 6ad2d8e5 xseg/peers/user/mt-mapperd.c

b/xseg/peers/user/mt-mapperd.c
1414 1414
	sprintf(tmp + map->volumelen, "_%u", mn->objectidx);
1415 1415
	tmp[XSEG_MAX_TARGETLEN] = 0;
1416 1416
	tmplen = strlen(tmp);
1417
	XSEGLOG2(&lc, D, "Base for new target: %s (len: %d)", tmp, tmplen);
1417 1418
	SHA256((unsigned char *)tmp, tmplen, sha);
1418 1419
	hexlify(sha, new_target+MAPPER_PREFIX_LEN);
1419 1420
	newtargetlen = MAPPER_PREFIX_LEN + HEXLIFIED_SHA256_DIGEST_SIZE;
1420

  
1421
	#define fooooo 71
1422
	XSEGLOG2(&lc, D, "New target: %.71s (len: %d)", new_target, newtargetlen);
1423
	#undef fooooo
1421 1424

  
1422 1425
	if (!strncmp(mn->object, zero_block, ZERO_BLOCK_LEN))
1423 1426
		goto copyup_zeroblock;

Also available in: Unified diff